]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Interworking: Verify that BSS information includes SSID
authorJouni Malinen <j@w1.fi>
Sun, 27 Nov 2011 21:00:37 +0000 (23:00 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 27 Nov 2011 21:00:37 +0000 (23:00 +0200)
Better make sure that the SSID is available before dereferencing
the pointer to the SSID element.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/interworking.c

index 2592688b0270f03aff3aceb55d8e786439b1542b..d42aa407c8cf142cfed19aa0d329322f38ee80df 100644 (file)
@@ -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));