aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-11-02 09:20:54 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-02 09:20:54 (GMT)
commit07fef399a17bfbb52517cc887412177c79c4cfc8 (patch)
tree5666e9dbcbf43b15b8747cb4f5d3d39c3fc25288
parent65ae1afd449dac9a2aad0c5fceccdaf18cc312aa (diff)
downloadhostap-07fef399a17bfbb52517cc887412177c79c4cfc8.zip
hostap-07fef399a17bfbb52517cc887412177c79c4cfc8.tar.gz
hostap-07fef399a17bfbb52517cc887412177c79c4cfc8.tar.bz2
WPS ER: Clear WPS state if PutMessage does not include NewOutMessage
This is needed to avoid getting stuck with pending WPS operation, e.g., when an AP replies to WSC_NACK with HTTP OK, but without following message.
-rw-r--r--src/wps/wps_er.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wps/wps_er.c b/src/wps/wps_er.c
index 030726e..d0f3f41 100644
--- a/src/wps/wps_er.c
+++ b/src/wps/wps_er.c
@@ -1617,6 +1617,8 @@ static void wps_er_http_put_message_cb(void *ctx, struct http_client *c,
if (buf == NULL) {
wpa_printf(MSG_DEBUG, "WPS ER: Could not extract "
"NewOutMessage from PutMessage response");
+ wps_deinit(ap->wps);
+ ap->wps = NULL;
return;
}
wps_er_ap_process(ap, buf);