]> git.sur5r.net Git - openldap/commitdiff
Check for opinfo->boi_txn before using it - sometimes it is NULL even if
authorLuke Howard <lukeh@openldap.org>
Thu, 26 Aug 2004 10:17:53 +0000 (10:17 +0000)
committerLuke Howard <lukeh@openldap.org>
Thu, 26 Aug 2004 10:17:53 +0000 (10:17 +0000)
opinfo isn't

servers/slapd/back-bdb/search.c

index fa80e81e01c8d4876bda7287df94f128196d32f3..0b6714be235d8e51154b74db12b23f4dec0fb719 100644 (file)
@@ -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 {