]> git.sur5r.net Git - openldap/commitdiff
ITS#8690 one more time
authorHoward Chu <hyc@openldap.org>
Fri, 4 Aug 2017 19:58:07 +0000 (20:58 +0100)
committerHoward Chu <hyc@openldap.org>
Fri, 4 Aug 2017 19:58:07 +0000 (20:58 +0100)
servers/slapd/overlays/syncprov.c

index 4fff71f21285e5951fe5c6ec59940e909f329884..e2f79f03a1fedcc8867edb27e590dbfb93f8e042 100644 (file)
@@ -1973,14 +1973,13 @@ 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 );
                                }
-                               free_resinfo( &opc->ssres );
-                               ldap_pvt_thread_mutex_unlock( &si->si_ops_mutex );
+                               if ( opc->ssres.s_info )
+                                       free_resinfo( &opc->ssres );
                                break;
                        }
                }