From 20e46b27fc5b4157440412ebe8613904c79fc6eb Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 12 Feb 2002 04:50:40 +0000 Subject: [PATCH] no need to check escaping of normalized dn --- servers/slapd/backend.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; } -- 2.39.5