mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
Add some additional filter checks
This commit is contained in:
parent
2433719316
commit
820042d013
1 changed files with 13 additions and 1 deletions
|
|
@ -544,7 +544,11 @@ get_substring_filter(
|
|||
#else
|
||||
Debug( LDAP_DEBUG_FILTER, " INITIAL\n", 0, 0, 0 );
|
||||
#endif
|
||||
if ( f->f_sub_initial != NULL ) {
|
||||
|
||||
if ( f->f_sub_initial != NULL
|
||||
|| f->f_sub_any != NULL
|
||||
|| f->f_sub_final != NULL )
|
||||
{
|
||||
ber_bvfree( value );
|
||||
goto return_error;
|
||||
}
|
||||
|
|
@ -568,6 +572,12 @@ get_substring_filter(
|
|||
#else
|
||||
Debug( LDAP_DEBUG_FILTER, " ANY\n", 0, 0, 0 );
|
||||
#endif
|
||||
|
||||
if ( f->f_sub_final != NULL ) {
|
||||
ber_bvfree( value );
|
||||
goto return_error;
|
||||
}
|
||||
|
||||
if( ber_bvecadd( &f->f_sub_any, value ) < 0 ) {
|
||||
ber_bvfree( value );
|
||||
goto return_error;
|
||||
|
|
@ -591,10 +601,12 @@ get_substring_filter(
|
|||
#else
|
||||
Debug( LDAP_DEBUG_FILTER, " FINAL\n", 0, 0, 0 );
|
||||
#endif
|
||||
|
||||
if ( f->f_sub_final != NULL ) {
|
||||
ber_bvfree( value );
|
||||
goto return_error;
|
||||
}
|
||||
|
||||
f->f_sub_final = value;
|
||||
|
||||
if( fstr ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue