]> git.sur5r.net Git - openldap/commitdiff
fix ITS#3208
authorPierangelo Masarati <ando@openldap.org>
Mon, 28 Jun 2004 20:55:04 +0000 (20:55 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 28 Jun 2004 20:55:04 +0000 (20:55 +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;