From 3218f6c11059e1c90e730365b07b97e508a948e6 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 13 Dec 2007 07:51:56 +0000 Subject: [PATCH] Fix segv with -q --- servers/slapd/back-bdb/tools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ) { -- 2.39.5