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

fix for select_backend suggested G. Gombas (ITS 1090)

parent 6997f7a7
...@@ -513,10 +513,12 @@ select_backend( ...@@ -513,10 +513,12 @@ select_backend(
continue; 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 */ /* make sure we have a separator */
continue; continue;
} }
if ( strcmp( backends[i].be_nsuffix[j], &dn[dnlen-len] ) == 0 ) { if ( strcmp( backends[i].be_nsuffix[j], &dn[dnlen-len] ) == 0 ) {
if( be == NULL ) { if( be == NULL ) {
......
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