+ 709. [bug] ANY or SIG queries for data with a TTL of 0
+ would return SERVFAIL. [RT #620]
+
759. [bug] The resolver didn't turn off "avoid fetches" mode
when restarting, possibly causing resolution
to fail when it should not. This bug only affected
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rbtdb.c,v 1.139.4.3 2001/02/23 18:42:59 gson Exp $ */
+/* $Id: rbtdb.c,v 1.139.4.4 2001/03/03 09:33:12 bwelling Exp $ */
/*
* Principal Author: Bob Halley
rbtiterator = (rbtdb_rdatasetiter_t *)(*iteratorp);
+ *
+ * Note: unlike everywhere else, we
+ * check for now > header->ttl instead
+ * of now >= header->ttl. This allows
+ * ANY and SIG queries for 0 TTL
+ * rdatasets to work.
if (rbtiterator->common.version != NULL)
closeversion(rbtiterator->common.db,
&rbtiterator->common.version, ISC_FALSE);
*/
if ((header->attributes &
RDATASET_ATTR_NONEXISTENT) != 0 ||
- (now != 0 && now >= header->ttl))
+ (now != 0 && now > header->ttl))
header = NULL;
break;
} else
/*
* Is this a "this rdataset doesn't
* exist" record?
+ *
+ * Note: unlike everywhere else, we
+ * check for now > header->ttl instead
+ * of now >= header->ttl. This allows
+ * ANY and SIG queries for 0 TTL
+ * rdatasets to work.
*/
if ((header->attributes &
RDATASET_ATTR_NONEXISTENT) != 0 ||
- (now != 0 && now >= header->ttl))
+ (now != 0 && now > header->ttl))
header = NULL;
break;
} else