From: Kurt Zeilenga Date: Tue, 12 Feb 2002 04:50:40 +0000 (+0000) Subject: no need to check escaping of normalized dn X-Git-Tag: OPENLDAP_REL_ENG_2_1_BP~36 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=20e46b27fc5b4157440412ebe8613904c79fc6eb;p=openldap no need to check escaping of normalized dn --- diff --git a/servers/slapd/backend.c b/servers/slapd/backend.c index 297ec308f9..4eb1e902fc 100644 --- a/servers/slapd/backend.c +++ b/servers/slapd/backend.c @@ -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; }