From: Kurt Zeilenga Date: Fri, 4 Jan 2002 05:37:19 +0000 (+0000) Subject: Fix ) in value handling X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~299 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=96138a842449458d624622f31d67b55226818a13;p=openldap Fix ) in value handling --- 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++;