bind9/lib/ns
Matthijs Mekking 2cce83e0d7 Fix serve-stale bug when cache has no data
We recently fixed a bug where in some cases (when following an
expired CNAME for example), named could return SERVFAIL if the target
record is still valid (see isc-projects/bind9#3678, and
isc-projects/bind9!7096). We fixed this by considering non-stale
RRsets as well during the stale lookup.

However, this triggered a new bug because despite the answer from
cache not being stale, the lookup may be triggered by serve-stale.
If the answer from database is not stale, the fix in
isc-projects/bind9!7096 erroneously skips the serve-stale logic.

Add 'answer_found' checks to the serve-stale logic to fix this issue.

(cherry picked from commit bbd163acf6)
2023-05-30 15:32:24 +02:00
..
include add an update quota 2023-01-12 12:21:36 +01:00
tests Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
win32 Propagate the shutdown event to the recursing ns_client(s) 2022-12-07 18:09:40 +01:00
client.c Propagate the shutdown event to the recursing ns_client(s) 2022-12-07 18:09:40 +01:00
hooks.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
interfacemgr.c Propagate the shutdown event to the recursing ns_client(s) 2022-12-07 18:09:40 +01:00
Kyuafile Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
lib.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
listenlist.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
log.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
Makefile.in Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
notify.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
query.c Fix serve-stale bug when cache has no data 2023-05-30 15:32:24 +02:00
server.c add an update quota 2023-01-12 12:21:36 +01:00
sortlist.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
stats.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
update.c move update ACL and update-policy checks before quota 2023-01-12 12:21:36 +01:00
version.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
xfrout.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00