mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
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:
parent
b30c1637bd
commit
5dd9d16b94
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user