mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-16 09:03:05 -05:00
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.
This commit is contained in:
parent
65ae1afd44
commit
07fef399a1
@ -1617,6 +1617,8 @@ static void wps_er_http_put_message_cb(void *ctx, struct http_client *c,
|
|||||||
if (buf == NULL) {
|
if (buf == NULL) {
|
||||||
wpa_printf(MSG_DEBUG, "WPS ER: Could not extract "
|
wpa_printf(MSG_DEBUG, "WPS ER: Could not extract "
|
||||||
"NewOutMessage from PutMessage response");
|
"NewOutMessage from PutMessage response");
|
||||||
|
wps_deinit(ap->wps);
|
||||||
|
ap->wps = NULL;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
wps_er_ap_process(ap, buf);
|
wps_er_ap_process(ap, buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user