mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-22 18:17:05 -04:00
Preserve ZEROTTL attribute when replacing NS RRset
Previously, BIND 9 would drop the ZEROTTL attribute when updating previously cached NS entry with ZEROTTL attribute set. Co-authored-by: Jinmei Tatuya <jtatuya@infoblox.com>
This commit is contained in:
parent
bfbc58063a
commit
982ca161c2
1 changed files with 5 additions and 0 deletions
|
|
@ -2790,6 +2790,11 @@ find_header:
|
|||
header->trust <= newheader->trust)
|
||||
{
|
||||
if (newheader->expire > header->expire) {
|
||||
if (ZEROTTL(header)) {
|
||||
DNS_SLABHEADER_SETATTR(
|
||||
newheader,
|
||||
DNS_SLABHEADERATTR_ZEROTTL);
|
||||
}
|
||||
newheader->expire = header->expire;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue