Check for DN separator

This commit is contained in:
Kurt Zeilenga 2001-03-15 04:18:07 +00:00
parent d7ccad3839
commit c5d24232a4

View File

@ -442,12 +442,16 @@ select_backend(
len = strlen( backends[i].be_nsuffix[j] );
if ( len > dnlen ) {
/* suffix is longer than DN */
continue;
}
if ( strcmp( backends[i].be_nsuffix[j],
dn + (dnlen - len) ) == 0 )
{
if ( len < dnlen && DN_SEPARATOR( dn[(dnlen-len)-1] ) ) {
/* make sure we have a separator */
continue;
}
if ( strcmp( backends[i].be_nsuffix[j], &dn[dnlen-len] ) == 0 ) {
if( be == NULL ) {
be = &backends[i];