From d6e957571575e9fb788a6584803bd5fdf8c08eea Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Mon, 10 Apr 2017 18:28:16 +0900 Subject: [PATCH] [WGID-200168, 200169, 200171] Fixed SVACE issues Change-Id: Ie8f43e4e974df7445609551c62ca77b7aa97624f Signed-off-by: Seonah Moon --- packaging/net-config.spec | 2 +- src/network-state.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/net-config.spec b/packaging/net-config.spec index 1935dce..4b722a6 100755 --- a/packaging/net-config.spec +++ b/packaging/net-config.spec @@ -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 diff --git a/src/network-state.c b/src/network-state.c index 64d6321..15e0cc9 100755 --- a/src/network-state.c +++ b/src/network-state.c @@ -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); -- 2.7.4