mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 17:52:10 -04:00
deal with 0 TTL glue
This commit is contained in:
parent
8ed67113ec
commit
22457624d3
2 changed files with 11 additions and 3 deletions
2
CHANGES
2
CHANGES
|
|
@ -1,3 +1,5 @@
|
|||
732. [bug] Glue with 0 TTL could also cause SERVFAIL. [RT #828]
|
||||
|
||||
731. [bug] Certain zone errors could cause named-checkzone to
|
||||
fail ungracefully. [RT #819]
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: resolver.c,v 1.197 2001/02/02 00:10:26 halley Exp $ */
|
||||
/* $Id: resolver.c,v 1.198 2001/02/08 19:14:58 halley Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -3156,9 +3156,15 @@ mark_related(dns_name_t *name, dns_rdataset_t *rdataset,
|
|||
isc_boolean_t external, isc_boolean_t gluing)
|
||||
{
|
||||
name->attributes |= DNS_NAMEATTR_CACHE;
|
||||
if (gluing)
|
||||
if (gluing) {
|
||||
rdataset->trust = dns_trust_glue;
|
||||
else
|
||||
/*
|
||||
* Glue with 0 TTL causes problems. We force the TTL to
|
||||
* 1 second to prevent this.
|
||||
*/
|
||||
if (rdataset->ttl == 0)
|
||||
rdataset->ttl = 1;
|
||||
} else
|
||||
rdataset->trust = dns_trust_additional;
|
||||
rdataset->attributes |= DNS_RDATASETATTR_CACHE;
|
||||
if (external)
|
||||
|
|
|
|||
Loading…
Reference in a new issue