Skip to content
Snippets Groups Projects
Commit ebe5a4fb authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

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

parent dd532d17
No related branches found
No related tags found
No related merge requests found
......@@ -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 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment