projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
108ff92
)
Fix handling of DHCP results with no nameserver
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 13 Apr 2009 13:44:35 +0000
(15:44 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 13 Apr 2009 13:44:35 +0000
(15:44 +0200)
src/resolver.c
patch
|
blob
|
history
diff --git
a/src/resolver.c
b/src/resolver.c
index
481369e
..
3a11fe7
100644
(file)
--- a/
src/resolver.c
+++ b/
src/resolver.c
@@
-149,6
+149,9
@@
int connman_resolver_append(const char *interface, const char *domain,
DBG("interface %s domain %s server %s", interface, domain, server);
+ if (server == NULL)
+ return -EINVAL;
+
entry = g_try_new0(struct entry_data, 1);
if (entry == NULL)
return -ENOMEM;