version 1.43, 2000/05/23 22:13:27
|
version 1.44, 2000/05/27 18:37:59
|
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.42 2000/05/22 01:46:57 kurt Exp $ */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/filter.c,v 1.43 2000/05/23 22:13:27 kurt Exp $ */ |
/* |
/* |
* Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved. |
* Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved. |
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file |
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file |
Line 405 get_substring_filter(
|
Line 405 get_substring_filter(
|
} |
} |
|
|
#ifdef SLAPD_SCHEMA_NOT_COMPAT |
#ifdef SLAPD_SCHEMA_NOT_COMPAT |
|
f->f_sub = ch_calloc( 1, sizeof(SubstringAssertion) ); |
f->f_sub_desc = NULL; |
f->f_sub_desc = NULL; |
rc = slap_bv2ad( &type, &f->f_sub_desc, text ); |
rc = slap_bv2ad( &type, &f->f_sub_desc, text ); |
|
|
Line 412 get_substring_filter(
|
Line 413 get_substring_filter(
|
|
|
if( rc != LDAP_SUCCESS ) { |
if( rc != LDAP_SUCCESS ) { |
text = NULL; |
text = NULL; |
|
ch_free( f->f_sub ); |
f->f_choice = SLAPD_FILTER_COMPUTED; |
f->f_choice = SLAPD_FILTER_COMPUTED; |
f->f_result = SLAPD_COMPARE_UNDEFINED; |
f->f_result = SLAPD_COMPARE_UNDEFINED; |
*fstr = ch_strdup( "(undefined)" ); |
*fstr = ch_strdup( "(undefined)" ); |
Line 576 return_error:
|
Line 578 return_error:
|
ber_bvfree( f->f_sub_initial ); |
ber_bvfree( f->f_sub_initial ); |
ber_bvecfree( f->f_sub_any ); |
ber_bvecfree( f->f_sub_any ); |
ber_bvfree( f->f_sub_final ); |
ber_bvfree( f->f_sub_final ); |
|
ch_free( f->f_sub ); |
return rc; |
return rc; |
} |
} |
} |
} |