mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
ITS#10408 Do not assume sop is still in the list
This commit is contained in:
parent
fc606ff7d3
commit
0eb18948f7
1 changed files with 7 additions and 4 deletions
|
|
@ -3336,12 +3336,15 @@ aband:
|
|||
ctxcsn[j].bv_val);
|
||||
bailout:
|
||||
if ( sop ) {
|
||||
syncops **sp = &si->si_ops;
|
||||
syncops **sp;
|
||||
|
||||
ldap_pvt_thread_mutex_lock( &si->si_ops_mutex );
|
||||
while ( *sp != sop )
|
||||
sp = &(*sp)->s_next;
|
||||
*sp = sop->s_next;
|
||||
for ( sp = &si->si_ops; *sp; sp = &(*sp)->s_next ) {
|
||||
if ( *sp == sop ) {
|
||||
*sp = sop->s_next;
|
||||
break;
|
||||
}
|
||||
}
|
||||
ldap_pvt_thread_mutex_unlock( &si->si_ops_mutex );
|
||||
ch_free( sop->s_base.bv_val );
|
||||
ch_free( sop );
|
||||
|
|
|
|||
Loading…
Reference in a new issue