summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2017-10-11 08:47:42 (GMT)
committerJaehyun Kim <jeik01.kim@samsung.com>2017-10-11 10:11:42 (GMT)
commitc98809b6f493853b5f1994c144b2608ec269ef87 (patch)
tree656f0e63f362830bd132e795889a5145436f36f0
parent7cf97f43040a61f4ba9644e9060c6b992587c6cc (diff)
downloadconnman-c98809b6f493853b5f1994c144b2608ec269ef87.zip
connman-c98809b6f493853b5f1994c144b2608ec269ef87.tar.gz
connman-c98809b6f493853b5f1994c144b2608ec269ef87.tar.bz2
Change-Id: I0f054b8f4cba4396b6d4018a4bb41504131a1c51 Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
-rwxr-xr-xplugins/wifi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 5897934..36f7fce 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;