]> git.sur5r.net Git - openldap/commitdiff
no need to check escaping of normalized dn
authorKurt Zeilenga <kurt@openldap.org>
Tue, 12 Feb 2002 04:50:40 +0000 (04:50 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 12 Feb 2002 04:50:40 +0000 (04:50 +0000)
servers/slapd/backend.c

index 297ec308f981b42310a28d01602493c1054d15bb..4eb1e902fcc2978f0c862017c9c3e0467ae8eebf 100644 (file)
@@ -548,11 +548,13 @@ select_backend(
                                continue;
                        }
                        
+                       /*
+                        * input DN is normalized, so the separator check
+                        * need not look at escaping
+                        */
                        if ( len && len < dnlen &&
-                               ( !DN_SEPARATOR( dn->bv_val[(dnlen-len)-1] ) ||
-                                       DN_ESCAPE( dn->bv_val[(dnlen-len)-2] ) ) )
+                               !DN_SEPARATOR( dn->bv_val[(dnlen-len)-1] ))
                        {
-                               /* make sure we have a separator */
                                continue;
                        }