summaryrefslogtreecommitdiff
path: root/src/or/buffers.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-03-10 18:45:42 +0000
committerNick Mathewson <nickm@torproject.org>2005-03-10 18:45:42 +0000
commitaaf70df3bd810f2cee9732a5ee14d37e2a35b9d0 (patch)
tree68237159a9c86d903468596544afcaeba18e4a6e /src/or/buffers.c
parent37a478bd781837fe5b9dc3ec4caff8e4cd00200d (diff)
downloadtor-aaf70df3bd810f2cee9732a5ee14d37e2a35b9d0.tar.gz
tor-aaf70df3bd810f2cee9732a5ee14d37e2a35b9d0.zip
Fix signed/unsigned warning
svn:r3736
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r--src/or/buffers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index c6a8d698be..92cac0030f 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -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);