From: Jouni Malinen Date: Wed, 29 Nov 2017 10:24:01 +0000 (+0200) Subject: DPP: Deinit PKEX instance on DPP_STOP_LISTEN X-Git-Tag: hostap_2_7~762 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed62d4011600cb9a1eccad4cdab40e2fae4c3bef;p=thirdparty%2Fhostap.git 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 --- 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; }