Merge branch 'fix/ot_dns_ext_hook_ip_check' into 'master'

fix(openthread): Add check for ip address in DNS external resolve hook

Closes TZ-1202

See merge request espressif/esp-idf!34034
pull/14733/head
Shu Chen 2024-10-10 12:11:10 +08:00
commit 6846245815
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -75,7 +75,7 @@ static void dns_found_handler(const char *name, const ip_addr_t *ipaddr, void *c
{
dns_resolve_entry_t *resolve_entry = (dns_resolve_entry_t *)callback_arg;
if (resolve_entry && resolve_entry->found) {
if (lwip_strnicmp(name, resolve_entry->name, sizeof(resolve_entry->name)) == 0) {
if (ipaddr && lwip_strnicmp(name, resolve_entry->name, sizeof(resolve_entry->name)) == 0) {
ip_addr_t ipaddr_copy = *ipaddr;
ip6_addr_t nat64_prefix;
if (ipaddr_copy.type == IPADDR_TYPE_V4 && esp_openthread_get_nat64_prefix(&nat64_prefix) == ESP_OK) {