]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/filter.c
ITS#3208: fix matchedValues parsing
[openldap] / libraries / libldap / filter.c
index afc0d2e0cfa2ab70147e2bbe724ac21593d53a25..b1468d047b842f70988f7a9b4045049302e4a626 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2003 The OpenLDAP Foundation.
+ * Copyright 1998-2004 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -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;