mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Merge commit 'niels/dnscrash'
This commit is contained in:
commit
2b7abf038f
3
evdns.c
3
evdns.c
@ -3293,7 +3293,8 @@ resolv_conf_parse_line(struct evdns_base *base, char *const start, int flags) {
|
||||
if (!strcmp(first_token, "nameserver") && (flags & DNS_OPTION_NAMESERVERS)) {
|
||||
const char *const nameserver = NEXT_TOKEN;
|
||||
|
||||
evdns_base_nameserver_ip_add(base, nameserver);
|
||||
if (nameserver)
|
||||
evdns_base_nameserver_ip_add(base, nameserver);
|
||||
} else if (!strcmp(first_token, "domain") && (flags & DNS_OPTION_SEARCH)) {
|
||||
const char *const domain = NEXT_TOKEN;
|
||||
if (domain) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user