From: Pierangelo Masarati Date: Mon, 8 Aug 2005 22:49:54 +0000 (+0000) Subject: more (in)sanity stuff X-Git-Tag: OPENLDAP_AC_BP~38 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9f1703d0d3c38d955195ed846cc5835440059a18;p=openldap more (in)sanity stuff --- 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; }