net: dns: Answers to multiple mDNS queries sent in parallel aren't properly handled #21914
Labels
area: Networking
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
When trying to resolve several different mDNS names at the same time, the answers received for each queries aren't always properly matched to the initial query.
This is because mDNS queries always have an ID of 0, so when receiving an answer in dns_read, the query slot returned will always be the first of the list since all IDs are at 0:
zephyr/subsys/net/lib/dns/resolve.c
Line 396 in 404aaec
RFC 6762 says:
Another way to match the answer to the query must be used for mDNS queries.
The text was updated successfully, but these errors were encountered: