From 6279e58c429a7bf587832735c024711d4f3aed38 Mon Sep 17 00:00:00 2001 From: jgujarathi Date: Fri, 17 Feb 2023 17:21:41 +0530 Subject: [PATCH] wpa_supplicant : Add deinitialization of Enterprise config_methods. Add deinitialization of config_methods as it prevents correct reinitialization of sta in eap_peer_config_init() during reassoc. --- components/wpa_supplicant/src/eap_peer/eap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/wpa_supplicant/src/eap_peer/eap.c b/components/wpa_supplicant/src/eap_peer/eap.c index 1b80c191b0..51d772217a 100644 --- a/components/wpa_supplicant/src/eap_peer/eap.c +++ b/components/wpa_supplicant/src/eap_peer/eap.c @@ -646,6 +646,7 @@ void eap_peer_config_deinit(struct eap_sm *sm) os_free(sm->config.new_password); os_free(sm->config.eap_methods); os_bzero(&sm->config, sizeof(struct eap_peer_config)); + config_methods = NULL; } int eap_peer_blob_init(struct eap_sm *sm)