aboutsummaryrefslogtreecommitdiff
path: root/src/ext
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-03-05 12:17:31 -0500
committerNick Mathewson <nickm@torproject.org>2014-03-05 12:17:31 -0500
commit12954908623a285606ec7522168cd2ac7e799525 (patch)
tree230de9088fb58509168acc96b27cc6ae70ae7a58 /src/ext
parent27d231ca130b48e0963aaab7307109f7eafcc5c9 (diff)
parent24add404ac08df59d0b5d68c6762b869bee63bac (diff)
downloadtor-12954908623a285606ec7522168cd2ac7e799525.tar.gz
tor-12954908623a285606ec7522168cd2ac7e799525.zip
Merge remote-tracking branch 'public/bug8788'
Diffstat (limited to 'src/ext')
-rw-r--r--src/ext/eventdns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ext/eventdns.c b/src/ext/eventdns.c
index 8b934c4430..5ac9c1230c 100644
--- a/src/ext/eventdns.c
+++ b/src/ext/eventdns.c
@@ -3014,7 +3014,8 @@ resolv_conf_parse_line(char *const start, int flags) {
if (!strcmp(first_token, "nameserver") && (flags & DNS_OPTION_NAMESERVERS)) {
const char *const nameserver = NEXT_TOKEN;
- evdns_nameserver_ip_add(nameserver);
+ if (nameserver)
+ evdns_nameserver_ip_add(nameserver);
} else if (!strcmp(first_token, "domain") && (flags & DNS_OPTION_SEARCH)) {
const char *const domain = NEXT_TOKEN;
if (domain) {