mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
esp_netif: fix esp_netif_get_dns_info() to copy the entire ip_addr_t
closes https://github.com/espressif/esp-idf/issues/4584 closes IDFGH-2472
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user