diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c index c1a0bfcc62..989b467e37 100644 --- a/servers/slapd/back-bdb/init.c +++ b/servers/slapd/back-bdb/init.c @@ -594,13 +594,11 @@ bdb_db_close( BackendDB *be ) } } - if ( bdb->bi_alock_info.al_slot > 0 ) { - rc = alock_close( &bdb->bi_alock_info ); - if( rc != 0 ) { - Debug( LDAP_DEBUG_ANY, - "bdb_db_close: alock_close failed\n", 0, 0, 0 ); - return -1; - } + rc = alock_close( &bdb->bi_alock_info ); + if( rc != 0 ) { + Debug( LDAP_DEBUG_ANY, + "bdb_db_close: alock_close failed\n", 0, 0, 0 ); + return -1; } return 0;