version 1.71, 2002/01/06 05:21:30
|
version 1.72, 2002/01/14 00:43:19
|
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.70 2002/01/06 05:11:01 hyc Exp $ */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/filter.c,v 1.71 2002/01/06 05:21:30 hyc Exp $ */ |
/* |
/* |
* Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. |
* Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. |
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file |
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file |
Line 589 get_substring_filter(
|
Line 589 get_substring_filter(
|
goto return_error; |
goto return_error; |
} |
} |
|
|
bvarray_add( &f->f_sub_any, &value ); |
ber_bvarray_add( &f->f_sub_any, &value ); |
|
|
if( fstr->bv_val ) { |
if( fstr->bv_val ) { |
int i = fstr->bv_len; |
int i = fstr->bv_len; |
Line 660 return_error:
|
Line 660 return_error:
|
} |
} |
|
|
free( f->f_sub_initial.bv_val ); |
free( f->f_sub_initial.bv_val ); |
bvarray_free( f->f_sub_any ); |
ber_bvarray_free( f->f_sub_any ); |
free( f->f_sub_final.bv_val ); |
free( f->f_sub_final.bv_val ); |
ch_free( f->f_sub ); |
ch_free( f->f_sub ); |
return rc; |
return rc; |
Line 711 filter_free( Filter *f )
|
Line 711 filter_free( Filter *f )
|
if ( f->f_sub_initial.bv_val != NULL ) { |
if ( f->f_sub_initial.bv_val != NULL ) { |
free( f->f_sub_initial.bv_val ); |
free( f->f_sub_initial.bv_val ); |
} |
} |
bvarray_free( f->f_sub_any ); |
ber_bvarray_free( f->f_sub_any ); |
if ( f->f_sub_final.bv_val != NULL ) { |
if ( f->f_sub_final.bv_val != NULL ) { |
free( f->f_sub_final.bv_val ); |
free( f->f_sub_final.bv_val ); |
} |
} |