]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Deinit PKEX instance on DPP_STOP_LISTEN
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 29 Nov 2017 10:24:01 +0000 (12:24 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 29 Nov 2017 10:24:01 +0000 (12:24 +0200)
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>
src/ap/dpp_hostapd.c
wpa_supplicant/dpp_supplicant.c

index 81c3989277c10968f8a4ff5622d0b125741e7134..23b8ec6b5ff4056779d721f585ee8c34bb4cffc2 100644 (file)
@@ -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;
 }
 
 
index 693d3853c0b28b1e0d1d4808756931874de93211..8661672cda9d57ea5da55ec7983f093ad67ce29f 100644 (file)
@@ -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;
 }