From 9f1703d0d3c38d955195ed846cc5835440059a18 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 8 Aug 2005 22:49:54 +0000 Subject: [PATCH] more (in)sanity stuff --- servers/slapd/back-monitor/init.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/servers/slapd/back-monitor/init.c b/servers/slapd/back-monitor/init.c index f4bc4ed66c..ce8967c304 100644 --- a/servers/slapd/back-monitor/init.c +++ b/servers/slapd/back-monitor/init.c @@ -1768,6 +1768,10 @@ monitor_back_db_destroy( { monitor_info_t *mi = ( monitor_info_t * )be->be_private; + if ( mi == NULL ) { + return -1; + } + /* * FIXME: destroys all the data */ @@ -1793,6 +1797,8 @@ monitor_back_db_destroy( ldap_pvt_thread_mutex_destroy( &monitor_info.mi_cache_mutex ); + be->be_private = NULL; + return 0; } -- 2.39.5