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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue