From cf3cf0470aa000d572947915d441f17ba035473f Mon Sep 17 00:00:00 2001 From: jgujarathi Date: Thu, 23 Mar 2023 11:54:02 +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 23903d07f1..8100830ebc 100644 --- a/components/wpa_supplicant/src/eap_peer/eap.c +++ b/components/wpa_supplicant/src/eap_peer/eap.c @@ -614,6 +614,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)