kopia lustrzana https://github.com/espressif/esp-idf
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!34034pull/14733/head
commit
6846245815
|
@ -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) {
|
||||
|
|
Ładowanie…
Reference in New Issue