diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-10-10 23:46:33 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-10-10 23:46:33 +0000 |
commit | 97e17d817b9763cb429086abbf7e8934206b85d3 (patch) | |
tree | d9d5c4b9124725238057e15adb3d4df50ea011e5 /src/or/eventdns.c | |
parent | 552d828def9e1ec94b7b2c0dc3d21352abf65fcb (diff) | |
download | tor-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.c | 2 |
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); \ |