diff --git a/lib/dns/rbtdb.c b/lib/dns/rbtdb.c index 42832cf7c8..624eb89b6a 100644 --- a/lib/dns/rbtdb.c +++ b/lib/dns/rbtdb.c @@ -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; }