mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-09 08:23:35 -05:00
ITS#5300, reject substring filters with empty values
This commit is contained in:
parent
ea9863bf6c
commit
cd673c2ff2
1 changed files with 4 additions and 2 deletions
|
|
@ -751,10 +751,12 @@ put_substring_filter( BerElement *ber, char *type, char *val )
|
|||
}
|
||||
}
|
||||
|
||||
if ( *val != '\0' || ftype == LDAP_SUBSTRING_ANY ) {
|
||||
if ( *val == '\0' ) {
|
||||
return -1;
|
||||
} else {
|
||||
ber_slen_t len = ldap_pvt_filter_value_unescape( val );
|
||||
|
||||
if ( len < 0 ) {
|
||||
if ( len <= 0 ) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue