]> git.sur5r.net Git - openldap/commitdiff
always complain when custom monitor stuff cannot be registered (ITS#4965)
authorPierangelo Masarati <ando@openldap.org>
Sat, 9 Jun 2007 14:11:16 +0000 (14:11 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 9 Jun 2007 14:11:16 +0000 (14:11 +0000)
servers/slapd/back-monitor/init.c

index 40c526256c1b7eefa4554facc5a908040dc9bdc2..00edb2f56117be2705f8e48c161b74667e1e3154 100644 (file)
@@ -2140,6 +2140,8 @@ monitor_back_db_open(
                " attributes, which must be explicitly requested."),
                BER_BVNULL };
 
+       int                     retcode = 0;
+
        assert( be_monitor != NULL );
        if ( be != be_monitor ) {
                be_monitor = be;
@@ -2410,12 +2412,17 @@ monitor_back_db_open(
                        tmp = el;
                        el = el->el_next;
                        ch_free( tmp );
+
+                       if ( rc != 0 ) {
+                               /* try all, but report error at end */
+                               retcode = 1;
+                       }
                }
 
                mi->mi_entry_limbo = NULL;
        }
 
-       return( 0 );
+       return retcode;
 }
 
 int