From: Luke Howard Date: Thu, 26 Aug 2004 10:17:53 +0000 (+0000) Subject: Check for opinfo->boi_txn before using it - sometimes it is NULL even if X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~629 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8d1f26b7b684ca5a53c4b7d10747a992df22d440;p=openldap Check for opinfo->boi_txn before using it - sometimes it is NULL even if opinfo isn't --- 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 {