From 44098150b1db9cce6baedb242285b6c1a8c440bf Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Fri, 17 Dec 2010 19:51:35 +0100 Subject: [PATCH] ipconfig: Set method to OFF when the stored method is unknown --- src/ipconfig.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ipconfig.c b/src/ipconfig.c index 5a6132d..90b4f16 100644 --- 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); -- 2.7.4