fix "comparison of unsigned expression < 0 is always false"
This commit is contained in:
parent
05fa4d341a
commit
8d65d26893
2 changed files with 2 additions and 2 deletions
|
@ -469,7 +469,7 @@ cwc_send_msg(cwc_t *cwc, const uint8_t *msg, size_t len, int sid, int enq)
|
|||
buf[4] = sid >> 8;
|
||||
buf[5] = sid;
|
||||
|
||||
if((len = des_encrypt(buf, len, cwc)) < 0) {
|
||||
if((len = des_encrypt(buf, len, cwc)) <= 0) {
|
||||
free(buf);
|
||||
free(cm);
|
||||
return -1;
|
||||
|
|
|
@ -184,7 +184,7 @@ got_pat(const uint8_t *ptr, size_t len, void *opaque)
|
|||
len -= 8;
|
||||
ptr += 8;
|
||||
|
||||
if(len < 0)
|
||||
if(len <= 0)
|
||||
return;
|
||||
|
||||
pthread_mutex_lock(&global_lock);
|
||||
|
|
Loading…
Add table
Reference in a new issue