bind9/lib
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
..
bind9 Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
dns Check whether zone->db is a valid pointer before attaching 2023-05-15 12:05:11 +00:00
irs Properly process extra nameserver lines in resolv.conf 2023-05-18 08:52:17 +10:00
isc Check the pointer alignments when deserialising 2023-05-05 07:04:31 +00:00
isccc Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
isccfg add a configuration option for the update quota 2023-01-12 12:21:36 +01:00
ns Fix serve-stale bug when cache has no data 2023-05-30 15:32:24 +02:00
win32/bindevt Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
.gitignore added gitignore, removed cvsignore 2012-03-03 23:10:05 -08:00
Kyuafile 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