mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-09 02:52:04 +08:00
Merge in select_backend dn separator check patch from devel.
This commit is contained in:
parent
b20333f911
commit
632bb0a117
@ -446,10 +446,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 New Issue
Block a user