fix for select_backend suggested G. Gombas (ITS 1090)

This commit is contained in:
Gary Williams 2001-03-27 15:04:06 +00:00
parent 6997f7a7ed
commit a26612bc00

View file

@ -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 ) {