mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-02 11:59:45 -05:00
ITS#10408 Do not assume sop is still in the list
This commit is contained in:
parent
aa3e8f34c3
commit
9cb8701e3c
1 changed files with 7 additions and 4 deletions
|
|
@ -3340,12 +3340,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