From: Howard Chu Date: Thu, 13 Dec 2007 07:51:56 +0000 (+0000) Subject: Fix segv with -q X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~323 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3218f6c11059e1c90e730365b07b97e508a948e6;p=openldap Fix segv with -q --- diff --git a/servers/slapd/back-bdb/tools.c b/servers/slapd/back-bdb/tools.c index 05e6fc3fba..b36ead159e 100644 --- a/servers/slapd/back-bdb/tools.c +++ b/servers/slapd/back-bdb/tools.c @@ -340,7 +340,7 @@ static int bdb_tool_next_id( return 0; } - rc = bdb_cache_find_ndn( op, TXN_ID( tid ), &ndn, &ei ); + rc = bdb_cache_find_ndn( op, tid ? TXN_ID( tid ) : 0, &ndn, &ei ); if ( ei ) bdb_cache_entryinfo_unlock( ei ); if ( rc == DB_NOTFOUND ) { if ( !be_issuffix( op->o_bd, &ndn ) ) {