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

1023. [func] Accept hints without TTLs.

This commit is contained in:
Mark Andrews
2001-09-30 04:31:28 +00:00
parent 54c4aa0f62
commit 96ea98af24
4 changed files with 17 additions and 5 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: master.c,v 1.126 2001/09/11 05:09:41 marka Exp $ */
/* $Id: master.c,v 1.127 2001/09/30 04:31:26 marka Exp $ */
#include <config.h>
@@ -1449,6 +1449,13 @@ load(dns_loadctx_t *lctx) {
limit_ttl(callbacks, source, line, &lctx->ttl);
lctx->default_ttl = lctx->ttl;
lctx->default_ttl_known = ISC_TRUE;
} else if ((lctx->options & DNS_MASTER_HINT) != 0) {
/*
* Zero TTL's are fine for hints.
*/
lctx->ttl = 0;
lctx->default_ttl = lctx->ttl;
lctx->default_ttl_known = ISC_TRUE;
} else {
(*callbacks->warn)(callbacks,
"%s:%lu: no TTL specified; "