From 4e5407a0960b2e842b8399d494e15083defef854 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 16 Mar 2005 21:44:05 +0000 Subject: [PATCH] Check for db_init failures --- servers/slapd/backover.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5