mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
fix double free related to ITS#6720
This commit is contained in:
parent
c9a63dc01a
commit
fa4dbb871b
@ -598,7 +598,7 @@ rwm_op_modify( Operation *op, SlapReply *rs )
|
|||||||
&mapping, RWM_MAP );
|
&mapping, RWM_MAP );
|
||||||
if ( drop_missing || ( mapping != NULL && BER_BVISNULL( &mapping->m_dst ) ) )
|
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;
|
mlp = &ml->sml_next;
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
skip_mod:;
|
||||||
|
*mlp = (*mlp)->sml_next;
|
||||||
|
continue;
|
||||||
|
|
||||||
cleanup_mod:;
|
cleanup_mod:;
|
||||||
ml = *mlp;
|
ml = *mlp;
|
||||||
*mlp = (*mlp)->sml_next;
|
*mlp = (*mlp)->sml_next;
|
||||||
|
Loading…
Reference in New Issue
Block a user