2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

deal with 0 TTL glue

This commit is contained in:
Bob Halley
2001-02-08 19:14:58 +00:00
parent 8ed67113ec
commit 22457624d3
2 changed files with 11 additions and 3 deletions

View File

@@ -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]

View File

@@ -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)