]> git.sur5r.net Git - openldap/commitdiff
more (in)sanity stuff
authorPierangelo Masarati <ando@openldap.org>
Mon, 8 Aug 2005 22:49:54 +0000 (22:49 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 8 Aug 2005 22:49:54 +0000 (22:49 +0000)
servers/slapd/back-monitor/init.c

index f4bc4ed66cdf946ea03a2b4db096c3ec96a8ad88..ce8967c3045ee82604b92cb022eea1001a43c0a0 100644 (file)
@@ -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;
 }