From: Howard Chu Date: Wed, 16 Mar 2005 21:44:05 +0000 (+0000) Subject: Check for db_init failures X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~54 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4e5407a0960b2e842b8399d494e15083defef854;p=openldap Check for db_init failures --- diff --git a/servers/slapd/backover.c b/servers/slapd/backover.c index 8532f4b708..e1b31a50c1 100644 --- a/servers/slapd/backover.c +++ b/servers/slapd/backover.c @@ -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;