kopia lustrzana https://github.com/espressif/esp-idf
fix(wpa_supplicant): memzero wifi config before sending config event
rodzic
d5e628229f
commit
9a1e54d485
|
@ -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;
|
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);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue