From: Hallvard Furuseth Date: Sun, 2 Apr 2006 23:49:57 +0000 (+0000) Subject: Init & destroy so.s_mutex around syncprov_findbase() call in syncprov_op_search X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~45 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=19a0d8293721af7d334a2e925c4121c366d3e740;p=openldap Init & destroy so.s_mutex around syncprov_findbase() call in syncprov_op_search --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 916b2a2ae3..2278ad34eb 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -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 );