ITS#7190 don't crash in slapcat on NULL entry

This commit is contained in:
Howard Chu 2012-03-06 22:15:51 -08:00
parent 9547dd7a0d
commit d0bcaee0f3

View file

@ -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 ) {