ITS#3841 skip db_close if db_open was never called

This commit is contained in:
Howard Chu 2005-07-11 17:12:43 +00:00
parent 5d2ba11ad9
commit 0f2f4f3196

View File

@ -543,6 +543,10 @@ bdb_db_close( BackendDB *be )
struct bdb_db_info *db;
bdb_idl_cache_entry_t *entry, *next_entry;
/* backend_shutdown closes everything, even if not all were opened */
if ( !bdb->bi_flags & BDB_IS_OPEN )
return 0;
bdb->bi_flags &= ~BDB_IS_OPEN;
ber_bvarray_free( bdb->bi_db_config );