mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix segv with -q
This commit is contained in:
parent
0792415c92
commit
3218f6c110
@ -340,7 +340,7 @@ static int bdb_tool_next_id(
|
|||||||
return 0;
|
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 ( ei ) bdb_cache_entryinfo_unlock( ei );
|
||||||
if ( rc == DB_NOTFOUND ) {
|
if ( rc == DB_NOTFOUND ) {
|
||||||
if ( !be_issuffix( op->o_bd, &ndn ) ) {
|
if ( !be_issuffix( op->o_bd, &ndn ) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user