Skip to content
Snippets Groups Projects
Commit a26612bc authored by Gary Williams's avatar Gary Williams
Browse files

fix for select_backend suggested G. Gombas (ITS 1090)

parent 6997f7a7
No related branches found
No related tags found
No related merge requests found
......@@ -513,10 +513,12 @@ 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 ) {
......
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