]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Check for EVENT_ASSOC data to be present for AP mode operation
authorJouni Malinen <j@w1.fi>
Sat, 7 Jun 2014 16:15:50 +0000 (19:15 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 7 Jun 2014 16:15:50 +0000 (19:15 +0300)
wpa_supplicant_event() is required to include the event data for AP mode
events. In theory, a non-AP mode event could be sent here from the
driver wrapper, so reject such event.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/events.c

index 5482a2598299c23d4bf31221e6ffb113846f9642..6551f93a8fac2189f798771dff4a85e30e783ee3 100644 (file)
@@ -1872,6 +1872,8 @@ static void wpa_supplicant_event_assoc(struct wpa_supplicant *wpa_s,
 
 #ifdef CONFIG_AP
        if (wpa_s->ap_iface) {
+               if (!data)
+                       return;
                hostapd_notif_assoc(wpa_s->ap_iface->bss[0],
                                    data->assoc_info.addr,
                                    data->assoc_info.req_ies,