Merge branch 'bugfix/dpp_config_memset' into 'master'

fix(wpa_supplicant): memzero wifi config before sending config event

Closes WIFIBUG-230

See merge request espressif/esp-idf!26915
This commit is contained in:
Kapil Gupta 2023-11-06 17:33:36 +08:00
commit 8768c9231c

View File

@ -179,6 +179,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);
}