summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2017-10-11 17:47:42 +0900
committerJaehyun Kim <jeik01.kim@samsung.com>2017-10-11 19:11:42 +0900
commitc98809b6f493853b5f1994c144b2608ec269ef87 (patch)
tree656f0e63f362830bd132e795889a5145436f36f0 /plugins
parent7cf97f43040a61f4ba9644e9060c6b992587c6cc (diff)
downloadconnman-c98809b6f493853b5f1994c144b2608ec269ef87.tar.gz
connman-c98809b6f493853b5f1994c144b2608ec269ef87.tar.bz2
connman-c98809b6f493853b5f1994c144b2608ec269ef87.zip
[WGID-302103] Fix dereference without null checksubmit/tizen/20171012.045027accepted/tizen/unified/20171013.190316
Change-Id: I0f054b8f4cba4396b6d4018a4bb41504131a1c51 Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/wifi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 58979345..36f7fced 100755
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -2630,7 +2630,7 @@ static bool handle_4way_handshake_failure(GSupplicantInterface *interface,
security = connman_network_get_string(network, "WiFi.Security");
- if (g_str_equal(security, "ieee8021x") == true &&
+ if (security && g_str_equal(security, "ieee8021x") == true &&
wifi->state == G_SUPPLICANT_STATE_ASSOCIATED) {
wifi->retries = 0;
connman_network_set_error(network, CONNMAN_NETWORK_ERROR_INVALID_KEY);
@@ -2686,7 +2686,7 @@ static bool handle_wifi_assoc_retry(struct connman_network *network,
}
security = connman_network_get_string(network, "WiFi.Security");
- if (g_str_equal(security, "ieee8021x") == true &&
+ if (security && g_str_equal(security, "ieee8021x") == true &&
wifi->state == G_SUPPLICANT_STATE_ASSOCIATED) {
wifi->assoc_retry_count = 0;
return false;