From 96138a842449458d624622f31d67b55226818a13 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 4 Jan 2002 05:37:19 +0000 Subject: [PATCH] Fix ) in value handling --- libraries/libldap/filter.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libraries/libldap/filter.c b/libraries/libldap/filter.c index 96abc9c121..ca00c60683 100644 --- a/libraries/libldap/filter.c +++ b/libraries/libldap/filter.c @@ -181,6 +181,10 @@ ldap_pvt_find_wildcard( const char *s ) case '*': /* found wildcard */ return (char *) s; + case '(': + case ')': + return NULL; + case '\\': if( s[1] == '\0' ) return NULL; @@ -215,6 +219,10 @@ ldap_pvt_filter_value_unescape( char *fval ) for( r=v=0; fval[v] != '\0'; v++ ) { switch( fval[v] ) { + case '(': + case ')': + return -1; + case '\\': /* escape */ v++; -- 2.39.5