aboutsummaryrefslogtreecommitdiff
path: root/src/or/eventdns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-10-10 23:46:33 +0000
committerNick Mathewson <nickm@torproject.org>2006-10-10 23:46:33 +0000
commit97e17d817b9763cb429086abbf7e8934206b85d3 (patch)
treed9d5c4b9124725238057e15adb3d4df50ea011e5 /src/or/eventdns.c
parent552d828def9e1ec94b7b2c0dc3d21352abf65fcb (diff)
downloadtor-97e17d817b9763cb429086abbf7e8934206b85d3.tar
tor-97e17d817b9763cb429086abbf7e8934206b85d3.tar.gz
r8985@totoro: nickm | 2006-10-10 19:39:57 -0400
Fix a signed/unsigned compare in eventdns.c svn:r8685
Diffstat (limited to 'src/or/eventdns.c')
-rw-r--r--src/or/eventdns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c
index aa45adf9f..39640cf88 100644
--- a/src/or/eventdns.c
+++ b/src/or/eventdns.c
@@ -1190,7 +1190,7 @@ evdns_request_data_build(const char *const name, const int name_len, const u16 t
int labels_len;
#define APPEND16(x) do { \
- if (j + 2 > buf_len) \
+ if (j + 2 > (off_t)buf_len) \
return (-1); \
_t = htons(x); \
memcpy(buf + j, &_t, 2); \