]> git.sur5r.net Git - openldap/commitdiff
Fix ) in value handling
authorKurt Zeilenga <kurt@openldap.org>
Fri, 4 Jan 2002 05:37:19 +0000 (05:37 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 4 Jan 2002 05:37:19 +0000 (05:37 +0000)
libraries/libldap/filter.c

index 96abc9c1213646369141b980081a6243e335eaa8..ca00c60683e911a6dafdf33e1a7a621d3d27b441 100644 (file)
@@ -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++;