[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r8508: Remove a signed/unsigned comparison in eventdns.c (in tor/trunk: . src/or)
Author: nickm
Date: 2006-09-26 18:03:26 -0400 (Tue, 26 Sep 2006)
New Revision: 8508
Modified:
tor/trunk/
tor/trunk/src/or/eventdns.c
Log:
r8969@Kushana: nickm | 2006-09-26 18:00:36 -0400
Remove a signed/unsigned comparison in eventdns.c
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r8969] on c95137ef-5f19-0410-b913-86e773d04f59
Modified: tor/trunk/src/or/eventdns.c
===================================================================
--- tor/trunk/src/or/eventdns.c 2006-09-26 22:03:23 UTC (rev 8507)
+++ tor/trunk/src/or/eventdns.c 2006-09-26 22:03:26 UTC (rev 8508)
@@ -1204,7 +1204,7 @@
free(labels);
return labels_len;
}
- if (j + labels_len > buf_len) {
+ if ((size_t)(j + labels_len) > buf_len) {
free(labels);
return (-1);
}