]> git.sur5r.net Git - openldap/commitdiff
ITS#3208: fix matchedValues parsing
authorKurt Zeilenga <kurt@openldap.org>
Tue, 29 Jun 2004 21:29:56 +0000 (21:29 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 29 Jun 2004 21:29:56 +0000 (21:29 +0000)
libraries/libldap/filter.c

index 3c03bf255a162fe0b008d73e3c71c536eebf1952..b1468d047b842f70988f7a9b4045049302e4a626 100644 (file)
@@ -968,7 +968,7 @@ put_vrFilter( BerElement *ber, const char *str_in )
                                0, 0, 0 );
 #endif
                        next = strchr( str, '\0' );
-                       if ( put_simple_filter( ber, str ) == -1 ) {
+                       if ( put_simple_vrFilter( ber, str ) == -1 ) {
                                rc = -1;
                                goto done;
                        }
@@ -1098,12 +1098,8 @@ put_simple_vrFilter(
                                        goto done;
                                }
                                rule = "";
-                       
-                       } else {
-                               *rule++ = '\0';
                        }
 
-
                        if ( *str == '\0' && ( !rule || *rule == '\0' ) ) {
                                /* must have either type or rule */
                                goto done;