mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Fix signed/unsigned warning
svn:r3736
This commit is contained in:
parent
37a478bd78
commit
aaf70df3bd
@ -716,7 +716,7 @@ int fetch_from_buf_control(buf_t *buf, uint32_t *len_out, uint16_t *type_out,
|
||||
msglen = ntohs(get_uint16(cp));
|
||||
if (ntohs(get_uint16(cp+2) != CONTROL_CMD_FRAGMENT))
|
||||
return -1; /* Missing fragment message; error. */
|
||||
if ((endp-cp) < 4+msglen)
|
||||
if ((endp-cp) < (int)(4+msglen))
|
||||
return 0; /* Fragment not all here. */
|
||||
sofar += msglen;
|
||||
cp += (4+msglen);
|
||||
|
Loading…
Reference in New Issue
Block a user