Commit fa4dbb87 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix double free related to ITS#6720

parent c9a63dc0
......@@ -598,7 +598,7 @@ rwm_op_modify( Operation *op, SlapReply *rs )
&mapping, RWM_MAP );
if ( drop_missing || ( mapping != NULL && BER_BVISNULL( &mapping->m_dst ) ) )
{
goto cleanup_mod;
goto skip_mod;
}
}
......@@ -693,6 +693,10 @@ next_mod:;
mlp = &ml->sml_next;
continue;
skip_mod:;
*mlp = (*mlp)->sml_next;
continue;
cleanup_mod:;
ml = *mlp;
*mlp = (*mlp)->sml_next;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment