From: Samuel Ortiz Date: Mon, 7 Feb 2011 23:56:04 +0000 (+0100) Subject: dnsproxy: Do not add NULL domains to the domain list X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~1762 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=29873834009a4e88efc151104dfac3975ddeba81;p=profile%2Fivi%2Fconnman.git dnsproxy: Do not add NULL domains to the domain list --- 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;