mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-13 14:27:59 +08:00
no need to check escaping of normalized dn
This commit is contained in:
parent
0006ec0a46
commit
20e46b27fc
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user