Diff for /servers/slapd/overlays/syncprov.c between versions 1.147.2.21 and 1.147.2.22

version 1.147.2.21, 2008/05/01 21:24:35 version 1.147.2.22, 2008/05/06 01:05:41
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.147.2.20 2008/04/11 10:45:33 hyc Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.147.2.21 2008/05/01 21:24:35 quanah 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 1176  syncprov_matchops( Operation *op, opcook Line 1176  syncprov_matchops( Operation *op, opcook
         for (ss = si->si_ops, sprev = (syncops *)&si->si_ops; ss;          for (ss = si->si_ops, sprev = (syncops *)&si->si_ops; ss;
                 sprev = ss, ss=snext)                  sprev = ss, ss=snext)
         {          {
                   Operation op2;
                 syncmatches *sm;                  syncmatches *sm;
                 int found = 0;                  int found = 0;
   
Line 1223  syncprov_matchops( Operation *op, opcook Line 1224  syncprov_matchops( Operation *op, opcook
                         }                          }
                 }                  }
   
                   if ( fc.fscope )
                           op2 = *ss->s_op;
   
                 /* check if current o_req_dn is in scope and matches filter */                  /* check if current o_req_dn is in scope and matches filter */
                 if ( fc.fscope && test_filter( ss->s_op, e, ss->s_op->ors_filter ) ==                  if ( fc.fscope && test_filter( &op2, e, ss->s_op->ors_filter ) ==
                         LDAP_COMPARE_TRUE ) {                          LDAP_COMPARE_TRUE ) {
                         if ( saveit ) {                          if ( saveit ) {
                                 sm = op->o_tmpalloc( sizeof(syncmatches), op->o_tmpmemctx );                                  sm = op->o_tmpalloc( sizeof(syncmatches), op->o_tmpmemctx );

Removed from v.1.147.2.21  
changed lines
  Added in v.1.147.2.22


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