DPP: Deinit PKEX instance on DPP_STOP_LISTEN
Previously this stopped only the DPP Authentication instance, but it is better to clear both PKEX and Authentication. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
e6a6de2994
commit
ed62d40116
2 changed files with 4 additions and 0 deletions
|
@ -1692,6 +1692,8 @@ void hostapd_dpp_stop(struct hostapd_data *hapd)
|
||||||
{
|
{
|
||||||
dpp_auth_deinit(hapd->dpp_auth);
|
dpp_auth_deinit(hapd->dpp_auth);
|
||||||
hapd->dpp_auth = NULL;
|
hapd->dpp_auth = NULL;
|
||||||
|
dpp_pkex_free(hapd->dpp_pkex);
|
||||||
|
hapd->dpp_pkex = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2448,6 +2448,8 @@ void wpas_dpp_stop(struct wpa_supplicant *wpa_s)
|
||||||
{
|
{
|
||||||
dpp_auth_deinit(wpa_s->dpp_auth);
|
dpp_auth_deinit(wpa_s->dpp_auth);
|
||||||
wpa_s->dpp_auth = NULL;
|
wpa_s->dpp_auth = NULL;
|
||||||
|
dpp_pkex_free(wpa_s->dpp_pkex);
|
||||||
|
wpa_s->dpp_pkex = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue