*
* Note: unlike everywhere else, we
* check for now > header->rdh_ttl instead
- * of now >= header->rdh_ttl. This allows
- * ANY and RRSIG queries for 0 TTL
- * rdatasets to work.
+ * of ">=". This allows ANY and RRSIG
+ * queries for 0 TTL rdatasets to work.
*/
if (NONEXISTENT(header) ||
(now != 0 &&
- now > header->rdh_ttl +
+ (now - RBTDB_VIRTUAL) >
+ header->rdh_ttl +
rbtdb->serve_stale_ttl))
{
header = NULL;
*
* Note: unlike everywhere else, we
* check for now > header->ttl instead
- * of now >= header->ttl. This allows
- * ANY and RRSIG queries for 0 TTL
- * rdatasets to work.
+ * of ">=". This allows ANY and RRSIG
+ * queries for 0 TTL rdatasets to work.
*/
if (NONEXISTENT(header) ||
- (now != 0 && now > header->rdh_ttl))
+ (now != 0 &&
+ (now - RBTDB_VIRTUAL) >
+ header->rdh_ttl))
{
header = NULL;
}