mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 07:49:59 -04:00
Properly select active rdatasets when iterating across node
Active rdatasets where not being properly selected in rdatasetiter_first
and rdatasetiter_next.
(cherry picked from commit 3bdab2d111)
This commit is contained in:
parent
52a9db2180
commit
434b53281b
1 changed files with 2 additions and 7 deletions
|
|
@ -8757,10 +8757,7 @@ rdatasetiter_first(dns_rdatasetiter_t *iterator) {
|
|||
* queries for 0 TTL rdatasets to work.
|
||||
*/
|
||||
if (NONEXISTENT(header) ||
|
||||
(now != 0 &&
|
||||
(now - RBTDB_VIRTUAL) >
|
||||
header->rdh_ttl +
|
||||
STALE_TTL(header, rbtdb)))
|
||||
(now != 0 && now > header->rdh_ttl))
|
||||
{
|
||||
header = NULL;
|
||||
}
|
||||
|
|
@ -8841,9 +8838,7 @@ rdatasetiter_next(dns_rdatasetiter_t *iterator) {
|
|||
* queries for 0 TTL rdatasets to work.
|
||||
*/
|
||||
if (NONEXISTENT(header) ||
|
||||
(now != 0 &&
|
||||
(now - RBTDB_VIRTUAL) >
|
||||
header->rdh_ttl))
|
||||
(now != 0 && now > header->rdh_ttl))
|
||||
{
|
||||
header = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue