r8969@Kushana: nickm | 2006-09-26 18:00:36 -0400

Remove a signed/unsigned comparison in eventdns.c


svn:r8508
This commit is contained in:
Nick Mathewson
2006-09-26 22:03:26 +00:00
parent cd2425ffa0
commit ba7868c7b3
+1 -1
View File
@@ -1204,7 +1204,7 @@ evdns_request_data_build(const char *const name, const int name_len, const u16 t
free(labels);
return labels_len;
}
if (j + labels_len > buf_len) {
if ((size_t)(j + labels_len) > buf_len) {
free(labels);
return (-1);
}