mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 09:39:45 -05:00
ITS#8541 fix data race in syncprov removal
This commit is contained in:
parent
70488c22bf
commit
0da38889e1
1 changed files with 2 additions and 0 deletions
|
|
@ -3958,10 +3958,12 @@ syncprov_db_close(
|
|||
for ( so=si->si_ops, sonext=so; so; so=sonext ) {
|
||||
SlapReply rs = {REP_RESULT};
|
||||
rs.sr_err = LDAP_UNAVAILABLE;
|
||||
ldap_pvt_thread_mutex_lock( &so->s_mutex );
|
||||
send_ldap_result( so->s_op, &rs );
|
||||
sonext=so->s_next;
|
||||
if ( so->s_flags & PS_TASK_QUEUED )
|
||||
ldap_pvt_thread_pool_retract( so->s_pool_cookie );
|
||||
ldap_pvt_thread_mutex_unlock( &so->s_mutex );
|
||||
if ( !syncprov_drop_psearch( so, 0 ))
|
||||
so->s_si = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue