From: Samuel Ortiz Date: Fri, 17 Dec 2010 18:51:35 +0000 (+0100) Subject: ipconfig: Set method to OFF when the stored method is unknown X-Git-Tag: 2.0_alpha~1984 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=44098150b1db9cce6baedb242285b6c1a8c440bf;p=framework%2Fconnectivity%2Fconnman.git ipconfig: Set method to OFF when the stored method is unknown --- 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);