]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Call isc/dns_log_setcontext(NULL) after ns_g_lctx has been destroyed.
authorBrian Wellington <source@isc.org>
Tue, 26 Sep 2000 22:12:13 +0000 (22:12 +0000)
committerBrian Wellington <source@isc.org>
Tue, 26 Sep 2000 22:12:13 +0000 (22:12 +0000)
bin/named/log.c

index ae61ae2013b04a83e183f1c3c3b457d5b011812d..67aa2cbd488c41f92cdd86ecb48f02ebec01bf27 100644 (file)
@@ -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 <config.h>
 
@@ -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);
 }