mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-24 23:57:30 -04:00
only call shutdown callback if non-NULL
This commit is contained in:
parent
3dbebbfe6e
commit
0eebe5cfe3
1 changed files with 2 additions and 1 deletions
|
|
@ -437,7 +437,8 @@ listener_destroy(omapi_object_t *listener) {
|
|||
* Somehow this callback stuff (or its "event" equivalent) needs to
|
||||
* go into object_dereference.
|
||||
*/
|
||||
(*l->callback)(l->callback_arg);
|
||||
if (l->callback != NULL)
|
||||
(*l->callback)(l->callback_arg);
|
||||
}
|
||||
|
||||
static isc_result_t
|
||||
|
|
|
|||
Loading…
Reference in a new issue