]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: always return the validated answers when validating
authorRonan Pigott <ronan@rjp.ie>
Tue, 26 Mar 2024 07:33:19 +0000 (00:33 -0700)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 27 Mar 2024 01:17:15 +0000 (10:17 +0900)
commit0dfea62ee3293891e92c33de28f9a6a9557d86eb
treed171195995de1078ae893a08aabba6c008437107
parent400171036592c4e3debc5b123e406155764f987d
resolved: always return the validated answers when validating

We normally expect sd-resolved only to return the validated subset of a
validated response. In some cases we give up on validating, because we
have enough information already to conclude the answer is bogus.

Let's be sure to always reply with only the validated subset in these
cases too, so that we don't return bogus answers and confuse primitive
clients that won't see the SERVFAIL rcode.
src/resolve/resolved-dns-transaction.c