mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 23:19:59 -05:00
ITS#7190 don't crash in slapcat on NULL entry
This commit is contained in:
parent
9547dd7a0d
commit
d0bcaee0f3
1 changed files with 4 additions and 2 deletions
|
|
@ -335,8 +335,10 @@ mdb_tool_entry_get_int( BackendDB *be, ID id, Entry **ep )
|
|||
rc = mdb_id2name( &op, txn, &idcursor, id, &dn, &ndn );
|
||||
if ( rc ) {
|
||||
rc = LDAP_OTHER;
|
||||
mdb_entry_return( &op, e );
|
||||
e = NULL;
|
||||
if ( e ) {
|
||||
mdb_entry_return( &op, e );
|
||||
e = NULL;
|
||||
}
|
||||
goto done;
|
||||
}
|
||||
if ( tool_base != NULL ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue