WPS: Fixed deinit code for freeing config and registrar data
authorJouni Malinen <j@w1.fi>
Wed, 17 Dec 2008 23:06:06 +0000 (01:06 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 17 Dec 2008 23:06:06 +0000 (01:06 +0200)
commitf0477201bd57cc509535a14f822d0ab5e1b1651c
tree0a11d7e4c0d008b000c61f1fb2a57c5a8fddd75b
parent47f72245e2a574beede7b083c13ab6d30e05c31e
WPS: Fixed deinit code for freeing config and registrar data

We need to be a bit more careful when removing the WPS configuration
block since wpa_s->current_ssid may still be pointing at it. In
addition, registrar pointer in wps_context will need to be cleared
since the context data is now maintained over multiple EAP-WSC runs.
Without this, certain WPS operations could have used freed memory.
src/eap_peer/eap_wsc.c
wpa_supplicant/wps_supplicant.c