From 0eebe5cfe35e01cc90a53f03b71fc6edba0778e8 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 14 Mar 2000 20:06:08 +0000 Subject: [PATCH] only call shutdown callback if non-NULL --- lib/omapi/listener.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/omapi/listener.c b/lib/omapi/listener.c index 1df13fa7b6..da334a345b 100644 --- a/lib/omapi/listener.c +++ b/lib/omapi/listener.c @@ -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