mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
fix for select_backend suggested G. Gombas (ITS 1090)
This commit is contained in:
parent
6997f7a7ed
commit
a26612bc00
1 changed files with 3 additions and 1 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue