Diff for /servers/slapd/filter.c between versions 1.98 and 1.99

version 1.98, 2003/03/16 20:50:39 version 1.99, 2003/03/16 20:58:00
Line 1 Line 1
 /* filter.c - routines for parsing and dealing with filters */  /* filter.c - routines for parsing and dealing with filters */
 /* $OpenLDAP: pkg/ldap/servers/slapd/filter.c,v 1.97 2003/03/16 18:09:07 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/filter.c,v 1.98 2003/03/16 20:50:39 kurt Exp $ */
 /*  /*
  * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.   * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file   * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
Line 435  get_substring_filter( Line 435  get_substring_filter(
 #ifdef SLAP_NVALUES  #ifdef SLAP_NVALUES
                 /* validate/normalize using equality matching rule validator! */                  /* validate/normalize using equality matching rule validator! */
                 rc = asserted_value_validate_normalize(                  rc = asserted_value_validate_normalize(
                         f->f_sub_desc, f->f_sub_desc->ad_type->sat_equality,                          ssa.sa_desc, ssa.sa_desc->ad_type->sat_equality,
                         usage, &value, &nvalue, text );                          usage, &value, &nvalue, text );
   
                 if( rc != LDAP_SUCCESS ) {                  if( rc != LDAP_SUCCESS ) {
Line 444  get_substring_filter( Line 444  get_substring_filter(
                 }                  }
 #else  #else
                 /* validate using equality matching rule validator! */                  /* validate using equality matching rule validator! */
                 rc = value_validate( f->f_sub_desc->ad_type->sat_equality,                  rc = value_validate( ssa.sa_desc->ad_type->sat_equality,
                         &value, text );                          &value, text );
                 if( rc != LDAP_SUCCESS ) {                  if( rc != LDAP_SUCCESS ) {
                         free( value.bv_val );                          free( value.bv_val );
                         goto return_error;                          goto return_error;
                 }                  }
   
                 rc = value_normalize( f->f_sub_desc, usage,                  rc = value_normalize( ssa.sa_desc, usage,
                         &value, &nvalue, text );                          &value, &nvalue, text );
   
                 free( value.bv_val );                  free( value.bv_val );

Removed from v.1.98  
changed lines
  Added in v.1.99


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