resolve: NSCOUNT of DNS query may not be zero
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 7 Jan 2024 17:02:33 +0000 (02:02 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 7 Jan 2024 17:09:07 +0000 (02:09 +0900)
commitba1749f6a5a2793e558485a8c6a871daba7bf533
tree2115016e565a81b98b83d958f2f606bfbf25a29e
parent307b6a4dab21c854b141b53d9bdd05c8af0abc78
resolve: NSCOUNT of DNS query may not be zero

This also separates check for DNS and LLMNR, as the existing comments
are for LLMNR, not DNS. And this moves the comment for mDNS.

Fixes the issue reported at
https://github.com/systemd/systemd/pull/30809#issuecomment-1880102804.
src/resolve/resolved-dns-packet.c