From 4085eb3cf0178a6baf9939d142cccd0d44b99f95 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Tue, 14 Nov 2000 00:37:19 +0000 Subject: [PATCH] don't crash when config parsing fails, fail nicely. --- bin/named/server.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/named/server.c b/bin/named/server.c index 27473f5b1e..41963d8843 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.246 2000/11/13 23:35:24 bwelling Exp $ */ +/* $Id: server.c,v 1.247 2000/11/14 00:37:19 bwelling Exp $ */ #include @@ -1723,7 +1723,8 @@ load_configuration(const char *filename, ns_server_t *server, cleanup: dns_aclconfctx_destroy(&aclconfctx); - dns_c_ctx_delete(&cctx); + if (cctx != NULL) + dns_c_ctx_delete(&cctx); if (view != NULL) dns_view_detach(&view);