From: Jouni Malinen Date: Tue, 15 Feb 2022 14:18:12 +0000 (+0200) Subject: DPP: Clear state on configuration failure in GAS server hander X-Git-Tag: hostap_2_11~2233 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=340ec48cdd740f33a3e84a8ffef959880ea9176e;p=thirdparty%2Fhostap.git DPP: Clear state on configuration failure in GAS server hander There is no need to maintain the DPP authentication state if config request processing fails, so clear state also in the GAS server request handler similarly to the other failure cases. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/dpp_supplicant.c b/wpa_supplicant/dpp_supplicant.c index b0b22c9a5..f7b638b20 100644 --- a/wpa_supplicant/dpp_supplicant.c +++ b/wpa_supplicant/dpp_supplicant.c @@ -3312,9 +3312,12 @@ wpas_dpp_gas_req_handler(void *ctx, void *resp_ctx, const u8 *sa, return NULL; } - if (!resp) - wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_CONF_FAILED); auth->conf_resp = resp; + if (!resp) { + wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_CONF_FAILED); + dpp_auth_deinit(wpa_s->dpp_auth); + wpa_s->dpp_auth = NULL; + } return resp; }