From: Kurt Zeilenga Date: Wed, 2 Jan 2002 23:03:37 +0000 (+0000) Subject: fix empty substrings any bug X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~339 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=81d2a0f289d388124d2c2eb55170cc3aa92dcb39;p=openldap fix empty substrings any bug --- diff --git a/libraries/libldap/filter.c b/libraries/libldap/filter.c index 4f475830ad..6e46dfbe05 100644 --- a/libraries/libldap/filter.c +++ b/libraries/libldap/filter.c @@ -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 ) {