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

ITS#7927 fix double-free of searchref

parent 93177bb6
No related branches found
No related tags found
No related merge requests found
...@@ -1019,7 +1019,8 @@ notfound: ...@@ -1019,7 +1019,8 @@ notfound:
send_search_reference( op, rs ); send_search_reference( op, rs );
mdb_entry_return( op, e ); if (e != base)
mdb_entry_return( op, e );
rs->sr_entry = NULL; rs->sr_entry = NULL;
e = NULL; e = NULL;
...@@ -1184,7 +1185,7 @@ done: ...@@ -1184,7 +1185,7 @@ done:
rs->sr_v2ref = NULL; rs->sr_v2ref = NULL;
} }
if (base) if (base)
mdb_entry_return( op,base); mdb_entry_return( op, base );
scope_chunk_ret( op, scopes ); scope_chunk_ret( op, scopes );
return rs->sr_err; return rs->sr_err;
......
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