From 07fef399a17bfbb52517cc887412177c79c4cfc8 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 2 Nov 2010 11:20:54 +0200 Subject: [PATCH] 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. --- src/wps/wps_er.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wps/wps_er.c b/src/wps/wps_er.c index 030726e2d..d0f3f411f 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);