Commit 7977cf4c authored by Bob Halley's avatar Bob Halley
Browse files

The recently added code to set lame-ttl triggered an assertion if

there was no view specified in the config file.
parent 60a7fe5d
......@@ -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 <config.h>
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment