From 0f2f4f3196062d20e007fba856d08b059339d3ee Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 11 Jul 2005 17:12:43 +0000 Subject: [PATCH] ITS#3841 skip db_close if db_open was never called --- servers/slapd/back-bdb/init.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c index b81d6a3853..d0e04377ac 100644 --- a/servers/slapd/back-bdb/init.c +++ b/servers/slapd/back-bdb/init.c @@ -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 ); -- 2.39.5