dns_message_detach(&updatemsg);
}
- if (is_dst_up) {
- ddebug("Destroy DST lib");
- dst_lib_destroy();
- is_dst_up = false;
- }
-
ddebug("Destroying request manager");
dns_requestmgr_detach(&requestmgr);
}
UNLOCK(&answer_lock);
+ ddebug("Shutting down managers");
+ isc_managers_destroy(&netmgr, &taskmgr, NULL);
+
#if HAVE_GSSAPI
if (tsigkey != NULL) {
ddebug("detach tsigkey x%p", tsigkey);
dst_key_free(&sig0key);
}
- ddebug("Shutting down managers");
- isc_managers_destroy(&netmgr, &taskmgr, NULL);
-
ddebug("Destroying event");
isc_event_free(&global_event);
isc_mem_destroy(&gmctx);
isc_mutex_destroy(&answer_lock);
+
+ if (is_dst_up) {
+ ddebug("Destroy DST lib");
+ dst_lib_destroy();
+ is_dst_up = false;
+ }
}
static void