From: Howard Chu Date: Fri, 4 Aug 2017 12:40:34 +0000 (+0100) Subject: ITS#8690 fix again X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c9e56b80f35e2cd3362df65bdfec739c5f35cc1b;p=openldap ITS#8690 fix again --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 27c49a2a3c..4fff71f212 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1973,13 +1973,14 @@ syncprov_op_response( Operation *op, SlapReply *rs ) /* for each match in opc->smatches: * send DELETE msg */ + ldap_pvt_thread_mutex_lock( &si->si_ops_mutex ); for ( sm = opc->smatches; sm; sm=sm->sm_next ) { if ( sm->sm_op->s_op->o_abandon ) continue; syncprov_qresp( opc, sm->sm_op, LDAP_SYNC_DELETE ); - if ( opc->ssres.s_info ) - free_resinfo( &opc->ssres ); } + free_resinfo( &opc->ssres ); + ldap_pvt_thread_mutex_unlock( &si->si_ops_mutex ); break; } }