aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_supplicant.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2018-02-04 09:55:01 (GMT)
committerJouni Malinen <j@w1.fi>2018-02-04 09:55:01 (GMT)
commit9f8d459d4c15735457dadcc87b62790656866285 (patch)
tree08c0f59554705f628ecef4bf6cc137bd1a310d13 /wpa_supplicant/wpa_supplicant.c
parentc6096c6eefa5152931f49d0e75509b1e4ae2a560 (diff)
downloadhostap-9f8d459d4c15735457dadcc87b62790656866285.zip
hostap-9f8d459d4c15735457dadcc87b62790656866285.tar.gz
hostap-9f8d459d4c15735457dadcc87b62790656866285.tar.bz2
OWE: Fix association IEs for transition mode open AP connection
The special case of returning from wpa_supplicant_set_suites() when OWE transition mode profile is used for an open association did not clear the wpa_ie buffer length properly. This resulted in trying to use corrupted IEs in the association request and failed association (cfg80211 rejects the request or if the request were to go out, the AP would likely reject it). Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/wpa_supplicant.c')
-rw-r--r--wpa_supplicant/wpa_supplicant.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 4209c41..8bc9a7c 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -1267,6 +1267,7 @@ int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
!bss_wpa && !bss_rsn && !bss_osen) {
wpa_supplicant_set_non_wpa_policy(wpa_s, ssid);
wpa_s->wpa_proto = 0;
+ *wpa_ie_len = 0;
return 0;
}
#endif /* CONFIG_OWE */