From ed62d4011600cb9a1eccad4cdab40e2fae4c3bef Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 29 Nov 2017 12:24:01 +0200 Subject: [PATCH] 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 --- src/ap/dpp_hostapd.c | 2 ++ wpa_supplicant/dpp_supplicant.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/ap/dpp_hostapd.c b/src/ap/dpp_hostapd.c index 81c398927..23b8ec6b5 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 693d3853c..8661672cd 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; }