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:
parent
7e6f59c702
commit
340ec48cdd
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue