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 <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2022-02-15 16:18:12 +02:00 committed by Jouni Malinen
parent 7e6f59c702
commit 340ec48cdd

View file

@ -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;
}