]> 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 10:32:17 +0000 (11:32 +0100)
commitf8b7b597e9a73d5c7fa72b337f4b112e8cf7a876
treeb40df121d1e7b5dbde8f830cd1abe6cd15fc2dae
parent9e061faaae81d1cae79331351d10ac9129d75024
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.
bin/tests/system/serve-stale/tests.sh
lib/ns/query.c