Merge branch 'bugfix/esp_netif_get_dns' into 'master'

esp_netif: fix esp_netif_get_dns_info() to copy the entire ip_addr_t

Closes IDFGH-2472

See merge request espressif/esp-idf!7266
This commit is contained in:
Angus Gratton 2020-01-10 17:51:29 +08:00
commit a05c00c2b3

View file

@ -1308,7 +1308,7 @@ static esp_err_t esp_netif_get_dns_info_api(esp_netif_api_msg_t *msg)
const ip_addr_t* dns_ip = NULL;
dns_ip = dns_getserver(type);
if(dns_ip != NULL) {
memcpy(&dns->ip.u_addr, &dns_ip, sizeof(ip4_addr_t));
memcpy(&dns->ip, dns_ip, sizeof(ip_addr_t));
}
}