From 8d1f26b7b684ca5a53c4b7d10747a992df22d440 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Thu, 26 Aug 2004 10:17:53 +0000 Subject: [PATCH] Check for opinfo->boi_txn before using it - sometimes it is NULL even if opinfo isn't --- servers/slapd/back-bdb/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb/search.c b/servers/slapd/back-bdb/search.c index fa80e81e01..0b6714be23 100644 --- a/servers/slapd/back-bdb/search.c +++ b/servers/slapd/back-bdb/search.c @@ -534,7 +534,7 @@ bdb_do_search( Operation *op, SlapReply *rs, Operation *sop, } } - if ( opinfo ) { + if ( opinfo && opinfo->boi_txn ) { ltid = opinfo->boi_txn; locker = TXN_ID( ltid ); } else { -- 2.39.5