diff options
author | Jouni Malinen <j@w1.fi> | 2009-11-15 22:56:39 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-11-15 22:56:39 +0200 |
commit | 33417cd75c7d07e24c24edef68fae941365ecc07 (patch) | |
tree | e89624be66888ee038346343bc85f3c777276b23 | |
parent | 2c073ad43d994ff2820c42b1aeb1f3b32baea911 (diff) | |
download | external_wpa_supplicant_8_ti-33417cd75c7d07e24c24edef68fae941365ecc07.zip external_wpa_supplicant_8_ti-33417cd75c7d07e24c24edef68fae941365ecc07.tar.gz external_wpa_supplicant_8_ti-33417cd75c7d07e24c24edef68fae941365ecc07.tar.bz2 |
WPS ER: Clear WPS protocol run on PutMessage failure
-rw-r--r-- | src/wps/wps_er.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wps/wps_er.c b/src/wps/wps_er.c index 86d2dff..2887f04 100644 --- a/src/wps/wps_er.c +++ b/src/wps/wps_er.c @@ -1408,6 +1408,10 @@ static void wps_er_http_put_message_cb(void *ctx, struct http_client *c, case HTTP_CLIENT_INVALID_REPLY: case HTTP_CLIENT_TIMEOUT: wpa_printf(MSG_DEBUG, "WPS ER: PutMessage failed"); + if (ap->wps) { + wps_deinit(ap->wps); + ap->wps = NULL; + } break; } http_client_free(ap->http); |