fix a bug in which nameservers would not be added to the correct base in windows.

svn:r873
This commit is contained in:
Niels Provos 2008-06-25 14:56:35 +00:00
parent 8aa94ced6d
commit 52161b47b6

View File

@ -2961,7 +2961,7 @@ evdns_nameserver_ip_add_line(struct evdns_base *base, const char *ips) {
if (!buf) return 4; if (!buf) return 4;
memcpy(buf, addr, ips-addr); memcpy(buf, addr, ips-addr);
buf[ips-addr] = '\0'; buf[ips-addr] = '\0';
r = evdns_nameserver_ip_add(buf); r = evdns_base_nameserver_ip_add(base, buf);
mm_free(buf); mm_free(buf);
if (r) return r; if (r) return r;
} }