aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-11-27 21:00:37 (GMT)
committerJouni Malinen <j@w1.fi>2011-11-27 21:00:37 (GMT)
commitdbfdb3927cdd347f19b24d152d29342cd5b277e3 (patch)
tree7cbbd2771b4bf7f16d1e1b8005c3b6ec7488f2ed /wpa_supplicant/interworking.c
parent363ab4406725260c308d8cccfab13e5989362e84 (diff)
downloadhostap-dbfdb3927cdd347f19b24d152d29342cd5b277e3.zip
hostap-dbfdb3927cdd347f19b24d152d29342cd5b277e3.tar.gz
hostap-dbfdb3927cdd347f19b24d152d29342cd5b277e3.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant/interworking.c')
-rw-r--r--wpa_supplicant/interworking.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index 2592688..d42aa40 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -571,6 +571,8 @@ static int interworking_connect_3gpp(struct wpa_supplicant *wpa_s,
const u8 *ie;
ie = wpa_bss_get_ie(bss, WLAN_EID_SSID);
+ if (ie == NULL)
+ return -1;
wpa_printf(MSG_DEBUG, "Interworking: Connect with " MACSTR " (3GPP)",
MAC2STR(bss->bssid));