mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#7150 fix check for already abandoned op
This commit is contained in:
parent
3423b56690
commit
5584e5b98d
1 changed files with 5 additions and 3 deletions
|
|
@ -2115,10 +2115,12 @@ syncprov_op_mod( Operation *op, SlapReply *rs )
|
|||
/* clean up if the caller is giving up */
|
||||
if ( op->o_abandon ) {
|
||||
modinst *m2;
|
||||
for ( m2 = mt->mt_mods; m2->mi_next != mi;
|
||||
for ( m2 = mt->mt_mods; m2 && m2->mi_next != mi;
|
||||
m2 = m2->mi_next );
|
||||
m2->mi_next = mi->mi_next;
|
||||
if ( mt->mt_tail == mi ) mt->mt_tail = m2;
|
||||
if ( m2 ) {
|
||||
m2->mi_next = mi->mi_next;
|
||||
if ( mt->mt_tail == mi ) mt->mt_tail = m2;
|
||||
}
|
||||
op->o_tmpfree( cb, op->o_tmpmemctx );
|
||||
ldap_pvt_thread_mutex_unlock( &mt->mt_mutex );
|
||||
return SLAPD_ABANDON;
|
||||
|
|
|
|||
Loading…
Reference in a new issue