mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(wpa_supplicant): memzero wifi config before sending config event
This commit is contained in:
parent
681439b85a
commit
ab93a6bd5b
@ -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;
|
wifi_config_t *wifi_cfg = &s_dpp_ctx.wifi_cfg;
|
||||||
|
|
||||||
|
os_memset(wifi_cfg, 0, sizeof(wifi_config_t));
|
||||||
if (conf->ssid_len) {
|
if (conf->ssid_len) {
|
||||||
os_memcpy(wifi_cfg->sta.ssid, conf->ssid, conf->ssid_len);
|
os_memcpy(wifi_cfg->sta.ssid, conf->ssid, conf->ssid_len);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user