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:
870bc7d
)
ipconfig: Set method to OFF when the stored method is unknown
author
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 17 Dec 2010 18:51:35 +0000
(19:51 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 17 Dec 2010 18:51:35 +0000
(19:51 +0100)
src/ipconfig.c
patch
|
blob
|
history
diff --git
a/src/ipconfig.c
b/src/ipconfig.c
index
5a6132d
..
90b4f16
100644
(file)
--- a/
src/ipconfig.c
+++ b/
src/ipconfig.c
@@
-1643,6
+1643,10
@@
int __connman_ipconfig_load(struct connman_ipconfig *ipconfig,
ipconfig->method = CONNMAN_IPCONFIG_METHOD_OFF;
} else
ipconfig->method = __connman_ipconfig_string2method(method);
+
+ if (ipconfig->method == CONNMAN_IPCONFIG_METHOD_UNKNOWN)
+ ipconfig->method = CONNMAN_IPCONFIG_METHOD_OFF;
+
g_free(key);
key = g_strdup_printf("%snetmask_prefixlen", prefix);