From 7977cf4cfe1751b3523bead3ea2b5ffeec3f7ca6 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Wed, 8 Nov 2000 18:46:40 +0000 Subject: [PATCH] The recently added code to set lame-ttl triggered an assertion if there was no view specified in the config file. --- bin/named/server.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/named/server.c b/bin/named/server.c index 715e730422..ef529602de 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: server.c,v 1.240 2000/11/08 03:53:05 marka Exp $ */ +/* $Id: server.c,v 1.241 2000/11/08 18:46:40 halley Exp $ */ #include @@ -503,7 +503,10 @@ configure_view(dns_view_t *view, dns_c_ctx_t *cctx, dns_c_view_t *cview, /* * Set resolver's lame-ttl. */ - result = dns_c_view_getlamettl(cctx, &lame_ttl); + if (cview != NULL) + result = dns_c_view_getlamettl(cview, &lame_ttl); + else + result = ISC_R_NOTFOUND; if (result == ISC_R_NOTFOUND) result = dns_c_ctx_getlamettl(cctx, &lame_ttl); if (result == ISC_R_NOTFOUND)