From 81d2a0f289d388124d2c2eb55170cc3aa92dcb39 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 2 Jan 2002 23:03:37 +0000 Subject: [PATCH] fix empty substrings any bug --- libraries/libldap/filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.39.5