mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 17:49:10 -04:00
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:
commit
a05c00c2b3
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user