summaryrefslogtreecommitdiff
path: root/plugins/wifi.c
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:44:19 +0900
commit6b159424205af39dccb0b4026ff6a32a39bc691e (patch)
tree656f0e63f362830bd132e795889a5145436f36f0 /plugins/wifi.c
parenta80dd79c5477a53842e2f7b268e2033e17dcb5b4 (diff)
downloadconnman-6b159424205af39dccb0b4026ff6a32a39bc691e.tar.gz
connman-6b159424205af39dccb0b4026ff6a32a39bc691e.tar.bz2
connman-6b159424205af39dccb0b4026ff6a32a39bc691e.zip
Change-Id: I1ac92182376beb900c85c1c5f54a63d59d024367 Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Diffstat (limited to 'plugins/wifi.c')
-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;