mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 23:55:27 +00:00
deal with 0 TTL glue
This commit is contained in:
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
|
731. [bug] Certain zone errors could cause named-checkzone to
|
||||||
fail ungracefully. [RT #819]
|
fail ungracefully. [RT #819]
|
||||||
|
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* 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>
|
#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)
|
isc_boolean_t external, isc_boolean_t gluing)
|
||||||
{
|
{
|
||||||
name->attributes |= DNS_NAMEATTR_CACHE;
|
name->attributes |= DNS_NAMEATTR_CACHE;
|
||||||
if (gluing)
|
if (gluing) {
|
||||||
rdataset->trust = dns_trust_glue;
|
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->trust = dns_trust_additional;
|
||||||
rdataset->attributes |= DNS_RDATASETATTR_CACHE;
|
rdataset->attributes |= DNS_RDATASETATTR_CACHE;
|
||||||
if (external)
|
if (external)
|
||||||
|
Reference in New Issue
Block a user