[WLAN] : Fix crash for NULL pointer handling

Jouni Malinen j at w1.fi
Wed Jul 4 14:14:47 EDT 2012


On Tue, Jul 03, 2012 at 12:03:40PM +0200, Manish BANSAL wrote:
> This patch add NULL check before passing the parameter to function wpa_supplicant_wps_event_er_set_sel_reg().

Could you please describe what operations were used to trigger this? As
far as I can tell, there are two places where
WPS_EV_ER_SET_SELECTED_REGISTRAR is indicated and both of those include
a pointer to the union wps_event_data. As such, I'm not sure how this
could result in a crash.

As far as contributing changes to hostap.git is concerned, please read
the CONTRIBUTIONS file in the top directory and send the patch with the
Signed-hostap: line included in the commit log.

-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list