mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#3841 skip db_close if db_open was never called
This commit is contained in:
parent
5d2ba11ad9
commit
0f2f4f3196
@ -543,6 +543,10 @@ bdb_db_close( BackendDB *be )
|
|||||||
struct bdb_db_info *db;
|
struct bdb_db_info *db;
|
||||||
bdb_idl_cache_entry_t *entry, *next_entry;
|
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;
|
bdb->bi_flags &= ~BDB_IS_OPEN;
|
||||||
|
|
||||||
ber_bvarray_free( bdb->bi_db_config );
|
ber_bvarray_free( bdb->bi_db_config );
|
||||||
|
Loading…
Reference in New Issue
Block a user