diff options
author | Henri Bragge <henri.bragge@ixonos.com> | 2010-12-03 14:42:30 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-12-07 12:42:39 +0100 |
commit | 0ab9afa9c8edf471ec9b669c125662336dd0d379 (patch) | |
tree | bd4ab0f16385ab33d39a0268af339befafb2c288 /plugins | |
parent | f5379ed72819b93f75e1106e55ba586f8ef51cb3 (diff) | |
download | connman-0ab9afa9c8edf471ec9b669c125662336dd0d379.tar.gz connman-0ab9afa9c8edf471ec9b669c125662336dd0d379.tar.bz2 connman-0ab9afa9c8edf471ec9b669c125662336dd0d379.zip |
dnsproxy: Ignore adding and removing of NULL servers
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/dnsproxy.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/dnsproxy.c b/plugins/dnsproxy.c index f287c3c2..b35ccb04 100644 --- a/plugins/dnsproxy.c +++ b/plugins/dnsproxy.c @@ -793,6 +793,9 @@ static int dnsproxy_append(const char *interface, const char *domain, DBG("interface %s server %s", interface, server); + if (server == NULL) + return -EINVAL; + if (g_str_equal(server, "127.0.0.1") == TRUE) return -ENODEV; @@ -820,6 +823,9 @@ static int dnsproxy_remove(const char *interface, const char *domain, { DBG("interface %s server %s", interface, server); + if (server == NULL) + return -EINVAL; + if (g_str_equal(server, "127.0.0.1") == TRUE) return -ENODEV; |