Diff for /servers/slapd/compare.c between versions 1.124.2.9 and 1.124.2.10

version 1.124.2.9, 2006/01/03 22:16:13 version 1.124.2.10, 2006/01/17 19:37:20
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/servers/slapd/compare.c,v 1.124.2.8 2005/08/26 00:18:02 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/compare.c,v 1.124.2.9 2006/01/03 22:16:13 kurt Exp $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
  * Copyright 1998-2006 The OpenLDAP Foundation.   * Copyright 1998-2006 The OpenLDAP Foundation.
Line 138  fe_op_compare( Operation *op, SlapReply Line 138  fe_op_compare( Operation *op, SlapReply
         Entry *entry = NULL;          Entry *entry = NULL;
         int manageDSAit;          int manageDSAit;
         AttributeAssertion ava = *op->orc_ava;          AttributeAssertion ava = *op->orc_ava;
           BackendDB       *bd = op->o_bd;
   
         if( strcasecmp( op->o_req_ndn.bv_val, LDAP_ROOT_DSE ) == 0 ) {          if( strcasecmp( op->o_req_ndn.bv_val, LDAP_ROOT_DSE ) == 0 ) {
                 Debug( LDAP_DEBUG_ARGS,                  Debug( LDAP_DEBUG_ARGS,
Line 214  fe_op_compare( Operation *op, SlapReply Line 215  fe_op_compare( Operation *op, SlapReply
   
                 rs->sr_err = LDAP_REFERRAL;                  rs->sr_err = LDAP_REFERRAL;
                 if (!rs->sr_ref) rs->sr_ref = default_referral;                  if (!rs->sr_ref) rs->sr_ref = default_referral;
                 op->o_bd = frontendDB;                  op->o_bd = bd;
                 send_ldap_result( op, rs );                  send_ldap_result( op, rs );
                 op->o_bd = NULL;  
   
                 if (rs->sr_ref != default_referral) ber_bvarray_free( rs->sr_ref );                  if (rs->sr_ref != default_referral) ber_bvarray_free( rs->sr_ref );
                 rs->sr_err = 0;                  rs->sr_err = 0;
Line 369  fe_op_compare( Operation *op, SlapReply Line 369  fe_op_compare( Operation *op, SlapReply
         }          }
   
 cleanup:;  cleanup:;
           op->o_bd = bd;
         return rs->sr_err;          return rs->sr_err;
 }  }
   

Removed from v.1.124.2.9  
changed lines
  Added in v.1.124.2.10


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