From ecd42966401494e2e3a75d1ef4aca309b1ce8b98 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 27 Mar 2003 03:27:48 +0000 Subject: [PATCH] Fix previous commit --- servers/slapd/back-bdb/id2entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb/id2entry.c b/servers/slapd/back-bdb/id2entry.c index a137d3d886..dbfe6102f3 100644 --- a/servers/slapd/back-bdb/id2entry.c +++ b/servers/slapd/back-bdb/id2entry.c @@ -262,7 +262,7 @@ int bdb_entry_release( boi = (struct bdb_op_info *)o->o_private; } /* lock is freed with txn */ - if ( boi && boi->boi_txn ) { + if ( !boi || boi->boi_txn ) { bdb_unlocked_cache_return_entry_rw( &bdb->bi_cache, e, rw ); } else { bdb_cache_return_entry_rw( bdb->bi_dbenv, &bdb->bi_cache, e, rw, &boi->boi_lock ); -- 2.39.5