From: Jouni Malinen Date: Sun, 27 Nov 2011 21:00:37 +0000 (+0200) Subject: Interworking: Verify that BSS information includes SSID X-Git-Tag: aosp-jb-start~240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbfdb3927cdd347f19b24d152d29342cd5b277e3;p=thirdparty%2Fhostap.git 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 --- diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c index 2592688b0..d42aa407c 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));