mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
only do omapi_listener_shutdown if ns_g_omapimgr != NULL
This commit is contained in:
parent
f5facdfc29
commit
ad1a8079ba
1 changed files with 4 additions and 2 deletions
|
|
@ -251,8 +251,10 @@ destroy_managers(void) {
|
|||
isc_timermgr_destroy(&ns_g_timermgr);
|
||||
isc_socketmgr_destroy(&ns_g_socketmgr);
|
||||
|
||||
omapi_listener_shutdown(ns_g_omapimgr);
|
||||
omapi_object_dereference(&ns_g_omapimgr);
|
||||
if (ns_g_omapimgr != NULL) {
|
||||
omapi_listener_shutdown(ns_g_omapimgr);
|
||||
omapi_object_dereference(&ns_g_omapimgr);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue