mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Init & destroy so.s_mutex around syncprov_findbase() call in syncprov_op_search
This commit is contained in:
parent
b2f79aa42e
commit
19a0d82937
@ -1902,10 +1902,12 @@ syncprov_op_search( Operation *op, SlapReply *rs )
|
||||
/* syncprov_findbase expects to be called as a callback... */
|
||||
sc.sc_private = &opc;
|
||||
opc.son = on;
|
||||
ldap_pvt_thread_mutex_init( &so.s_mutex );
|
||||
cb = op->o_callback;
|
||||
op->o_callback = ≻
|
||||
rs->sr_err = syncprov_findbase( op, &fc );
|
||||
op->o_callback = cb;
|
||||
ldap_pvt_thread_mutex_destroy( &so.s_mutex );
|
||||
|
||||
if ( rs->sr_err != LDAP_SUCCESS ) {
|
||||
send_ldap_result( op, rs );
|
||||
|
Loading…
Reference in New Issue
Block a user