From: Gary Williams Date: Tue, 27 Mar 2001 15:04:06 +0000 (+0000) Subject: fix for select_backend suggested G. Gombas (ITS 1090) X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1476 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a26612bc00bacbc660fa4a26466f609a29a1d072;p=openldap fix for select_backend suggested G. Gombas (ITS 1090) --- diff --git a/servers/slapd/backend.c b/servers/slapd/backend.c index ac82f26276..600d61d7f2 100644 --- a/servers/slapd/backend.c +++ b/servers/slapd/backend.c @@ -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 ) {