From 29873834009a4e88efc151104dfac3975ddeba81 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Tue, 8 Feb 2011 00:56:04 +0100 Subject: [PATCH] dnsproxy: Do not add NULL domains to the domain list --- src/dnsproxy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dnsproxy.c b/src/dnsproxy.c index b7667a6..201c365 100644 --- a/src/dnsproxy.c +++ b/src/dnsproxy.c @@ -836,6 +836,9 @@ static void append_domain(const char *interface, const char *domain) DBG("interface %s domain %s", interface, domain); + if (domain == NULL) + return; + for (list = server_list; list; list = list->next) { struct server_data *data = list->data; GList *dom_list; -- 2.7.4