]> git.sur5r.net Git - openldap/commitdiff
fix extended matching when rule is missing (ITS#3216)
authorPierangelo Masarati <ando@openldap.org>
Sat, 3 Jul 2004 11:28:47 +0000 (11:28 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 3 Jul 2004 11:28:47 +0000 (11:28 +0000)
libraries/libldap/filter.c

index b1468d047b842f70988f7a9b4045049302e4a626..9a432cb8782bef7830ffa2386c70c1ce5cd679f7 100644 (file)
@@ -1090,7 +1090,6 @@ put_simple_vrFilter(
 
                {
                        char *rule = strchr( str, ':' );
-                       *rule++ = '\0';
 
                        if( rule == NULL ) {
                                /* must have attribute */
@@ -1098,6 +1097,8 @@ put_simple_vrFilter(
                                        goto done;
                                }
                                rule = "";
+                       } else {
+                               *rule++ = '\0';
                        }
 
                        if ( *str == '\0' && ( !rule || *rule == '\0' ) ) {