]> git.sur5r.net Git - openldap/commitdiff
Fix segv with -q
authorHoward Chu <hyc@openldap.org>
Thu, 13 Dec 2007 07:51:56 +0000 (07:51 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 13 Dec 2007 07:51:56 +0000 (07:51 +0000)
servers/slapd/back-bdb/tools.c

index 05e6fc3fbaeb231b4b7b3fd426376b52957aa14b..b36ead159eee3a415370645717bb64efb67487fe 100644 (file)
@@ -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 ) ) {