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:
b5d62db
)
Add extra warning if no nameserver is defined
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 13 Apr 2009 13:47:40 +0000
(15:47 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 13 Apr 2009 13:47:40 +0000
(15:47 +0200)
src/ipv4.c
patch
|
blob
|
history
diff --git
a/src/ipv4.c
b/src/ipv4.c
index
4518d97
..
b670cfd
100644
(file)
--- a/
src/ipv4.c
+++ b/
src/ipv4.c
@@
-92,6
+92,9
@@
static int set_ipv4(struct connman_element *element,
close(sk);
+ if (nameserver == NULL)
+ connman_error("No nameserver for %s defined", ifr.ifr_name);
+
connman_resolver_append(ifr.ifr_name, NULL, nameserver);
return 0;