[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r13622: Oops. not supposed to use tor_assert() in eventdns.c (in tor/trunk: . src/or)



Author: nickm
Date: 2008-02-20 12:48:37 -0500 (Wed, 20 Feb 2008)
New Revision: 13622

Modified:
   tor/trunk/
   tor/trunk/src/or/eventdns.c
Log:
 r18263@catbus:  nickm | 2008-02-20 12:45:15 -0500
 Oops. not supposed to use tor_assert() in eventdns.c



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r18263] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/src/or/eventdns.c
===================================================================
--- tor/trunk/src/or/eventdns.c	2008-02-20 17:30:00 UTC (rev 13621)
+++ tor/trunk/src/or/eventdns.c	2008-02-20 17:48:37 UTC (rev 13622)
@@ -2186,7 +2186,7 @@
 		if ((cp-ip_as_string) >= (int)sizeof(buf)) {
 			return 4;
 		}
-		tor_assert(cp >= ip_as_string);
+		assert(cp >= ip_as_string);
 		memcpy(buf, ip_as_string, cp-ip_as_string);
 		buf[cp-ip_as_string] = '\0';
 		cp = buf;