mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
Interworking: Verify that BSS information includes SSID
Better make sure that the SSID is available before dereferencing the pointer to the SSID element. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
363ab44067
commit
dbfdb3927c
@ -571,6 +571,8 @@ static int interworking_connect_3gpp(struct wpa_supplicant *wpa_s,
|
|||||||
const u8 *ie;
|
const u8 *ie;
|
||||||
|
|
||||||
ie = wpa_bss_get_ie(bss, WLAN_EID_SSID);
|
ie = wpa_bss_get_ie(bss, WLAN_EID_SSID);
|
||||||
|
if (ie == NULL)
|
||||||
|
return -1;
|
||||||
wpa_printf(MSG_DEBUG, "Interworking: Connect with " MACSTR " (3GPP)",
|
wpa_printf(MSG_DEBUG, "Interworking: Connect with " MACSTR " (3GPP)",
|
||||||
MAC2STR(bss->bssid));
|
MAC2STR(bss->bssid));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user