Skip to content

Bug in DNS server: Incorrect array indexing when checking IP address (IDFGH-16653) #17751

@jojo2massol

Description

@jojo2massol

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

The DNS server does not use the correct entry index when checking the IP address.

h->entry->ip.addr 

instead of

h->entry[i].ip.addr

which causes it to always check entry 0 regardless of which entry matched in the loop.

This bug prevents proper DNS resolution when multiple entries are configured and the matching entry is not at index 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions