Check for db_init failures

This commit is contained in:
Howard Chu 2005-03-16 21:44:05 +00:00
parent cd23b2ddf4
commit 4e5407a096

View 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;