]> git.sur5r.net Git - openldap/commitdiff
Check for db_init failures
authorHoward Chu <hyc@openldap.org>
Wed, 16 Mar 2005 21:44:05 +0000 (21:44 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 16 Mar 2005 21:44:05 +0000 (21:44 +0000)
servers/slapd/backover.c

index 8532f4b7085f2b746b488319681a1e7433b593d3..e1b31a50c1d6f6817afd4502e376361d11c2d112 100644 (file)
@@ -659,9 +659,11 @@ overlay_config( BackendDB *be, const char *ov )
 
        /* Any initialization needed? */
        if ( on->on_bi.bi_db_init ) {
+               int rc;
                be->bd_info = (BackendInfo *)on2;
-               on2->on_bi.bi_db_init( be );
+               rc = on2->on_bi.bi_db_init( be );
                be->bd_info = (BackendInfo *)oi;
+               if ( rc ) return rc;
        }
 
        return 0;