diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c
index c1a0bfcc624b27ade64b40ed96a81f127a9cb45d..989b467e375ee259091fcf2c2824eebc6193b08c 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;