aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-11-29 10:24:01 (GMT)
committerJouni Malinen <j@w1.fi>2017-11-29 10:24:01 (GMT)
commited62d4011600cb9a1eccad4cdab40e2fae4c3bef (patch)
treef2022f0412a3f83bdd7045e09899072b789360ae
parente6a6de2994aac608ecdeba59a82b5d17b5e55bc8 (diff)
downloadhostap-ed62d4011600cb9a1eccad4cdab40e2fae4c3bef.zip
hostap-ed62d4011600cb9a1eccad4cdab40e2fae4c3bef.tar.gz
hostap-ed62d4011600cb9a1eccad4cdab40e2fae4c3bef.tar.bz2
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>
-rw-r--r--src/ap/dpp_hostapd.c2
-rw-r--r--wpa_supplicant/dpp_supplicant.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/ap/dpp_hostapd.c b/src/ap/dpp_hostapd.c
index 81c3989..23b8ec6 100644
--- a/src/ap/dpp_hostapd.c
+++ b/src/ap/dpp_hostapd.c
@@ -1692,6 +1692,8 @@ void hostapd_dpp_stop(struct hostapd_data *hapd)
{
dpp_auth_deinit(hapd->dpp_auth);
hapd->dpp_auth = NULL;
+ dpp_pkex_free(hapd->dpp_pkex);
+ hapd->dpp_pkex = NULL;
}
diff --git a/wpa_supplicant/dpp_supplicant.c b/wpa_supplicant/dpp_supplicant.c
index 693d385..8661672 100644
--- a/wpa_supplicant/dpp_supplicant.c
+++ b/wpa_supplicant/dpp_supplicant.c
@@ -2448,6 +2448,8 @@ void wpas_dpp_stop(struct wpa_supplicant *wpa_s)
{
dpp_auth_deinit(wpa_s->dpp_auth);
wpa_s->dpp_auth = NULL;
+ dpp_pkex_free(wpa_s->dpp_pkex);
+ wpa_s->dpp_pkex = NULL;
}