From: Pierangelo Masarati Date: Fri, 25 Nov 2005 01:12:32 +0000 (+0000) Subject: fix ldap_bv2escaped_filter_value() according to X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~706 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c655139449ccfc86c46a107c2a9caf311c4de026;p=openldap fix ldap_bv2escaped_filter_value() according to --- diff --git a/libraries/libldap/search.c b/libraries/libldap/search.c index d6bd5f2dec..afa63ef9ae 100644 --- a/libraries/libldap/search.c +++ b/libraries/libldap/search.c @@ -370,13 +370,13 @@ ldap_bv2escaped_filter_value( struct berval *in, struct berval *out ) { ber_len_t i; static char escape[128] = { - 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, + 1, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, - 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -388,7 +388,7 @@ ldap_bv2escaped_filter_value( struct berval *in, struct berval *out ) 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 1 + 0, 0, 0, 0, 0, 0, 0, 0 }; out->bv_len = 0;