]> git.sur5r.net Git - openldap/commitdiff
fix empty substrings any bug
authorKurt Zeilenga <kurt@openldap.org>
Wed, 2 Jan 2002 23:03:37 +0000 (23:03 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 2 Jan 2002 23:03:37 +0000 (23:03 +0000)
libraries/libldap/filter.c

index 4f475830ad7c995d1c743ca9d770e39fd5313826..6e46dfbe0545b266e1bda7ac3d4039d48951e962 100644 (file)
@@ -675,7 +675,7 @@ put_substring_filter( BerElement *ber, char *type, char *val )
 
                *nextstar++ = '\0';
 
-               if ( *val != '\0' ) {
+               if ( *val != '\0' || ftype == LDAP_SUBSTRING_ANY ) {
                        ber_slen_t len = ldap_pvt_filter_value_unescape( val );
 
                        if ( len < 0  ) {