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;