mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-27 12:13:20 -04:00
Properly select active rdatasets when iterating across node
Active rdatasets where not being properly selected in rdatasetiter_first and rdatasetiter_next.
This commit is contained in:
parent
e49f83499a
commit
3bdab2d111
1 changed files with 2 additions and 7 deletions
|
|
@ -8867,10 +8867,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;
|
||||
}
|
||||
|
|
@ -8950,9 +8947,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