Skip to content
Snippets Groups Projects
Commit c5d24232 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Check for DN separator

parent d7ccad38
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment