WPS ER: Fix segfault in some selected registrar change cases
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 30 Nov 2011 12:44:23 +0000 (14:44 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 30 Nov 2011 12:44:23 +0000 (14:44 +0200)
commitd6d731b848d8d44b5a1db2e6d6b56625f2b83859
tree02cc1488d84efa158fcac6ff110b71da322e14cb
parent79b8c60f811f2a5d65d2f44889b2ef4f82874f90
WPS ER: Fix segfault in some selected registrar change cases

Commit 628d54639a90f779fd5c98c31e049638de56b17e introduced number
of new WPS related ctrl_iface messages to hostapd. Some of these
were for ER events which do not make any sense to hostapd that
cannot operate as an ER. The WPS_EV_ER_SET_SELECTED_REGISTRAR one
from wps_registrar_sel_registrar_changed_event() was especially
problematic since it can cause wpa_supplicant ER code segfault due
to missing event data.

Revert all the ER specific changes from commit
628d54639a90f779fd5c98c31e049638de56b17e to get rid of the segfault
and undesired extra code in hostapd.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/wps_hostapd.c
src/wps/wps_common.c
src/wps/wps_i.h
src/wps/wps_registrar.c