mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-23 15:17:01 -04:00
Call isc/dns_log_setcontext(NULL) after ns_g_lctx has been destroyed.
This commit is contained in:
parent
db503b6daf
commit
8bc1e5bb4a
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue