From 5dac11e0274b2582dfcda78c0010797e1b2780dd Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 14 Apr 2011 02:55:38 +0300 Subject: [PATCH] WPS: Use strict validation of (Re)AssocResp only if IEs are known --- wpa_supplicant/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 3e6d0143e..a3153aa57 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -1103,7 +1103,7 @@ static int wpa_supplicant_event_associnfo(struct wpa_supplicant *wpa_s, l = data->assoc_info.resp_ies_len; #ifdef CONFIG_WPS_STRICT - if (wpa_s->current_ssid && + if (p && wpa_s->current_ssid && wpa_s->current_ssid->key_mgmt == WPA_KEY_MGMT_WPS) { struct wpabuf *wps; wps = ieee802_11_vendor_ie_concat(p, l, WPS_IE_VENDOR_TYPE);