move TSIG and TKEY destroy routines to server.c

This commit is contained in:
Bob Halley
1999-11-05 20:20:18 +00:00
parent 65f9103cc5
commit f9d8c276c1
2 changed files with 3 additions and 2 deletions

View File

@@ -280,8 +280,6 @@ setup() {
static void
cleanup() {
destroy_managers();
dns_tsig_destroy();
dns_tkey_destroy();
isc_rwlock_destroy(&ns_g_viewlock);
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
ISC_LOG_NOTICE, "exiting");

View File

@@ -536,6 +536,9 @@ shutdown_server(isc_task_t *task, isc_event_t *event) {
*/
dns_c_ctx_delete(ns_g_lctx, &ns_g_confctx);
dns_tkey_destroy();
dns_tsig_destroy();
RWUNLOCK(&ns_g_viewlock, isc_rwlocktype_write);
isc_task_detach(&server_task);