[WGID-200168, 200169, 200171] Fixed SVACE issues 38/124138/1 accepted/tizen/unified/20170411.035228 submit/tizen/20170411.013600
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 10 Apr 2017 09:28:16 +0000 (18:28 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 10 Apr 2017 09:28:34 +0000 (18:28 +0900)
Change-Id: Ie8f43e4e974df7445609551c62ca77b7aa97624f
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
packaging/net-config.spec
src/network-state.c

index 1935dce..4b722a6 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          net-config
 Summary:       TIZEN Network Configuration service
-Version:       1.1.107
+Version:       1.1.108
 Release:       2
 Group:         System/Network
 License:       Apache-2.0
index 64d6321..15e0cc9 100755 (executable)
@@ -518,7 +518,7 @@ static void __netconfig_update_default_connection_info(void)
                if (g_strcmp0(old_ip, ip_addr) != 0 || old_ip == NULL) {
                        if (ip_addr != NULL)
                                netconfig_set_vconf_str(VCONFKEY_NETWORK_IP, ip_addr);
-                       else if (strlen(old_ip) > 0)
+                       else if (old_ip != NULL && strlen(old_ip) > 0)
                                netconfig_set_vconf_str(VCONFKEY_NETWORK_IP, "");
                }
                g_free(old_ip);
@@ -526,7 +526,7 @@ static void __netconfig_update_default_connection_info(void)
                if (g_strcmp0(old_ip6, ip_addr6) != 0 || old_ip6 == NULL) {
                        if (ip_addr6 != NULL)
                                netconfig_set_vconf_str(VCONFKEY_NETWORK_IP6, ip_addr6);
-                       else if (strlen(old_ip6) > 0)
+                       else if (old_ip6 != NULL && strlen(old_ip6) > 0)
                                netconfig_set_vconf_str(VCONFKEY_NETWORK_IP6, "");
                }
                g_free(old_ip6);