mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-26 13:49:35 -05:00
SME: Handle association without own extra IEs
Need to check for this before calling ieee802_11_parse_elems().
This commit is contained in:
parent
e6ecca7737
commit
9efc3f2a4b
@ -324,7 +324,8 @@ void sme_associate(struct wpa_supplicant *wpa_s, enum wpas_mode mode,
|
|||||||
|
|
||||||
wpa_supplicant_set_state(wpa_s, WPA_ASSOCIATING);
|
wpa_supplicant_set_state(wpa_s, WPA_ASSOCIATING);
|
||||||
|
|
||||||
if (ieee802_11_parse_elems(params.wpa_ie, params.wpa_ie_len, &elems, 0)
|
if (params.wpa_ie == NULL ||
|
||||||
|
ieee802_11_parse_elems(params.wpa_ie, params.wpa_ie_len, &elems, 0)
|
||||||
< 0) {
|
< 0) {
|
||||||
wpa_printf(MSG_DEBUG, "SME: Could not parse own IEs?!");
|
wpa_printf(MSG_DEBUG, "SME: Could not parse own IEs?!");
|
||||||
os_memset(&elems, 0, sizeof(elems));
|
os_memset(&elems, 0, sizeof(elems));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user