From 806696b112c7f29db0edce75200b2118594c6de3 Mon Sep 17 00:00:00 2001 From: Kapil Gupta Date: Fri, 3 Nov 2023 15:44:08 +0530 Subject: [PATCH] fix(wpa_supplicant): memzero wifi config before sending config event --- components/wpa_supplicant/src/esp_supplicant/esp_dpp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/wpa_supplicant/src/esp_supplicant/esp_dpp.c b/components/wpa_supplicant/src/esp_supplicant/esp_dpp.c index 3f2710bfc7..48d54a5fd0 100644 --- a/components/wpa_supplicant/src/esp_supplicant/esp_dpp.c +++ b/components/wpa_supplicant/src/esp_supplicant/esp_dpp.c @@ -177,6 +177,7 @@ static int esp_dpp_handle_config_obj(struct dpp_authentication *auth, { wifi_config_t *wifi_cfg = &s_dpp_ctx.wifi_cfg; + os_memset(wifi_cfg, 0, sizeof(wifi_config_t)); if (conf->ssid_len) { os_memcpy(wifi_cfg->sta.ssid, conf->ssid, conf->ssid_len); }