r18263@catbus: nickm | 2008-02-20 12:45:15 -0500

Oops. not supposed to use tor_assert() in eventdns.c


svn:r13622
This commit is contained in:
Nick Mathewson 2008-02-20 17:48:37 +00:00
parent b30c1637bd
commit 5dd9d16b94

View File

@ -2186,7 +2186,7 @@ evdns_nameserver_ip_add(const char *ip_as_string) {
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;