From: Daniel Wagner <[email protected]>
The server_list can contain global nameservers such as the Google ones
8.8.8.8, 8.8.4.4 which do not have a domain associated with it.
Therefore we should not do any strcmp on those entries.
---
src/dnsproxy.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/dnsproxy.c b/src/dnsproxy.c
index b7667a6..46eb415 100644
--- a/src/dnsproxy.c
+++ b/src/dnsproxy.c
@@ -852,6 +852,9 @@ static void append_domain(const char *interface, const char
*domain)
dom_list = dom_list->next) {
dom = dom_list->data;
+ if (dom == NULL)
+ continue;
+
if (g_str_equal(dom, domain)) {
dom_found = TRUE;
break;
--
1.7.4
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman