Commit a26612bc authored by Gary Williams's avatar Gary Williams
Browse files

fix for select_backend suggested G. Gombas (ITS 1090)

parent 6997f7a7
......@@ -513,11 +513,13 @@ select_backend(
continue;
}
if ( len < dnlen && DN_SEPARATOR( dn[(dnlen-len)-1] ) ) {
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];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment