projects
/
platform
/
upstream
/
connman.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix issue with adding nameserver that doesn't exist
[platform/upstream/connman.git]
/
src
/
ipv4.c
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;
}