mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
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>
This commit is contained in:
parent
c6096c6eef
commit
9f8d459d4c
@ -1267,6 +1267,7 @@ int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
|
|||||||
!bss_wpa && !bss_rsn && !bss_osen) {
|
!bss_wpa && !bss_rsn && !bss_osen) {
|
||||||
wpa_supplicant_set_non_wpa_policy(wpa_s, ssid);
|
wpa_supplicant_set_non_wpa_policy(wpa_s, ssid);
|
||||||
wpa_s->wpa_proto = 0;
|
wpa_s->wpa_proto = 0;
|
||||||
|
*wpa_ie_len = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_OWE */
|
#endif /* CONFIG_OWE */
|
||||||
|
Loading…
Reference in New Issue
Block a user