From 8bc1e5bb4ad549ef0b0a57691e4e53dc50786e3d Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Tue, 26 Sep 2000 22:12:13 +0000 Subject: [PATCH] Call isc/dns_log_setcontext(NULL) after ns_g_lctx has been destroyed. --- bin/named/log.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/named/log.c b/bin/named/log.c index ae61ae2013..67aa2cbd48 100644 --- a/bin/named/log.c +++ b/bin/named/log.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: log.c,v 1.23 2000/08/25 01:08:19 bwelling Exp $ */ +/* $Id: log.c,v 1.24 2000/09/26 22:12:13 bwelling Exp $ */ #include @@ -90,6 +90,8 @@ ns_log_init(isc_boolean_t safe) { cleanup: isc_log_destroy(&ns_g_lctx); + isc_log_setcontext(NULL); + dns_log_setcontext(NULL); return (result); } @@ -178,4 +180,6 @@ ns_log_setdefaultcategory(isc_logconfig_t *lcfg) { void ns_log_shutdown(void) { isc_log_destroy(&ns_g_lctx); + isc_log_setcontext(NULL); + dns_log_setcontext(NULL); }