Diff for /servers/slapd/overlays/syncprov.c between versions 1.46 and 1.47

version 1.46, 2004/12/08 01:05:50 version 1.47, 2004/12/09 07:14:57
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.45 2004/12/07 23:47:25 hyc Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.46 2004/12/08 01:05:50 hyc Exp $ */
 /* syncprov.c - syncrepl provider */  /* syncprov.c - syncrepl provider */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
Line 1501  syncprov_detach_op( Operation *op, synco Line 1501  syncprov_detach_op( Operation *op, synco
         int i, alen = 0;          int i, alen = 0;
         size_t size;          size_t size;
         char *ptr;          char *ptr;
           GroupAssertion *g1, *g2;
   
         /* count the search attrs */          /* count the search attrs */
         for (i=0; op->ors_attrs && !BER_BVISNULL( &op->ors_attrs[i].an_name ); i++) {          for (i=0; op->ors_attrs && !BER_BVISNULL( &op->ors_attrs[i].an_name ); i++) {
Line 1544  syncprov_detach_op( Operation *op, synco Line 1545  syncprov_detach_op( Operation *op, synco
         op2->o_callback = NULL;          op2->o_callback = NULL;
         so->s_op = op2;          so->s_op = op2;
   
           /* Copy any cached group ACLs individually */
           op2->o_groups = NULL;
           for ( g1=op->o_groups; g1; g1=g1->ga_next ) {
                   g2 = ch_malloc( sizeof(GroupAssertion) + g1->ga_len );
                   *g2 = *g1;
                   strcpy( g2->ga_ndn, g1->ga_ndn );
                   g2->ga_next = op2->o_groups;
                   op2->o_groups = g2;
           }
   
         /* Increment number of ops so that idletimeout ignores us */          /* Increment number of ops so that idletimeout ignores us */
         ldap_pvt_thread_mutex_lock( &op->o_conn->c_mutex );          ldap_pvt_thread_mutex_lock( &op->o_conn->c_mutex );
         op->o_conn->c_n_ops_executing++;          op->o_conn->c_n_ops_executing++;

Removed from v.1.46  
changed lines
  Added in v.1.47


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org