projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5379ed
)
dnsproxy: Ignore adding and removing of NULL servers
author
Henri Bragge
<henri.bragge@ixonos.com>
Fri, 3 Dec 2010 12:42:30 +0000
(14:42 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Tue, 7 Dec 2010 11:42:39 +0000
(12:42 +0100)
plugins/dnsproxy.c
patch
|
blob
|
history
diff --git
a/plugins/dnsproxy.c
b/plugins/dnsproxy.c
index
f287c3c
..
b35ccb0
100644
(file)
--- 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;