[PATCH] Add explicit NULL check before accessing data pointer

Jouni Malinen j
Sat Jul 26 08:49:37 PDT 2014


On Mon, Jul 21, 2014 at 09:38:28AM +0000, De Cesco, Jonathan wrote:
> Android private lib for nl80211 driver is sending
> wpa_supplicant_event(drv->ctx, EVENT_CHANNEL_LIST_CHANGED, NULL);
> For this event, data pointer validity is not checked before access.

That's not part of the upstream hostap.git nor a valid call, i.e., the
caller should be fixed instead. All the hostap.git users of
wpa_supplicant_event() provide the required data for
EVENT_CHANNEL_LIST_CHANGED.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list