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:
a7dc6ca
)
Fix issue with adding nameserver that doesn't exist
author
Mohamed Abbas
<mohamed.abbas@intel.com>
Thu, 8 Oct 2009 18:49:13 +0000
(11:49 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 3 Nov 2009 06:58:40 +0000
(15:58 +0900)
src/ipv4.c
patch
|
blob
|
history
diff --git
a/src/ipv4.c
b/src/ipv4.c
index
b98d302
..
01a430a
100644
(file)
--- a/
src/ipv4.c
+++ b/
src/ipv4.c
@@
-97,8
+97,8
@@
static int set_ipv4(struct connman_element *element,
if (nameserver == NULL)
connman_error("No nameserver for %s defined", ifr.ifr_name);
-
- connman_resolver_append(ifr.ifr_name, NULL, nameserver);
+ else
+
connman_resolver_append(ifr.ifr_name, NULL, nameserver);
return 0;
}