]> git.ipfire.org Git - thirdparty/bind9.git/commit
Don't servfail on staleonly lookups
authorMatthijs Mekking <matthijs@isc.org>
Mon, 22 Feb 2021 11:08:49 +0000 (12:08 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 25 Feb 2021 11:07:34 +0000 (12:07 +0100)
commitacc95d4e1d852dd1833dc1c01796e9716c0cdcc7
tree0baf003b171bf5497a6f90cd6cbf2591ff9954b5
parent84deb57bc3a8c27ef51cf00b43bd40efab621830
Don't servfail on staleonly lookups

When a staleonly lookup doesn't find a satisfying answer, it should
not try to respond to the client.

This is not true when the initial lookup is staleonly (that is when
'stale-answer-client-timeout' is set to 0), because no resolver fetch
has been created at this point. In this case continue with the lookup
normally.

(cherry picked from commit f8b7b597e9a73d5c7fa72b337f4b112e8cf7a876)
bin/tests/system/serve-stale/tests.sh
lib/ns/query.c