]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS: Clear WPS data on init failure
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 20 Mar 2014 15:01:37 +0000 (17:01 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 21 Mar 2014 11:23:23 +0000 (13:23 +0200)
commit20ff2642e192437245422c9654463bcebf65b277
treed32c04a9a0711196feb501001a03708b96020740
parentd2a4005b3b823a74a8bfab398ebe9656d4b7d41f
WPS: Clear WPS data on init failure

It was possible for hapd->wps_beacon_ie and hapd->wps_probe_resp_ie to
be set if WPS initialization in hostapd failed after having set these
parameters (e.g., during UPnP configuration). In addition, many of the
other WPS configuration parameters that were allocated during the first
part of the initialization were not properly freed on error paths.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/wps_hostapd.c