]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolve: fix no mDNS announcement after probing
authorVishal Chillara Srinivas <vishal.chillarasrinivas@philips.com>
Fri, 13 Oct 2023 09:06:06 +0000 (14:36 +0530)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 16 Oct 2023 07:21:51 +0000 (09:21 +0200)
commit57cf92f74148307fd63cb01d27040e2617c91a42
tree161585b658588a233fc9d42fd3aa8e31997db067
parente9e40862de6af4650f1ef1de022e9940df1f5d9a
resolve: fix no mDNS announcement after probing

According to RFC 6762 section 8, an mDNS responder is supposed to announce its
records after probing.
Currently, there is a check in dns_scope_announce which returns if there are any
pending transactions. This prevents announcements from being sent out even if there
are pending non-probe transactions.

To fix this, return only if there are active probe transactions.
src/resolve/resolved-dns-scope.c