mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-12 05:32:42 -04:00
Deal with TTL 0 ANY and SIG queries.
This commit is contained in:
parent
46c3b3f6e1
commit
40fdf87153
1 changed files with 15 additions and 3 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rbtdb.c,v 1.144 2001/01/17 01:22:17 bwelling Exp $ */
|
||||
/* $Id: rbtdb.c,v 1.145 2001/01/24 02:40:19 halley Exp $ */
|
||||
|
||||
/*
|
||||
* Principal Author: Bob Halley
|
||||
|
|
@ -4264,10 +4264,16 @@ rdatasetiter_first(dns_rdatasetiter_t *iterator) {
|
|||
/*
|
||||
* 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
|
||||
|
|
@ -4322,10 +4328,16 @@ rdatasetiter_next(dns_rdatasetiter_t *iterator) {
|
|||
/*
|
||||
* 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue