]> git.sur5r.net Git - openldap/commitdiff
fix for select_backend suggested G. Gombas (ITS 1090)
authorGary Williams <gwilliams@openldap.org>
Tue, 27 Mar 2001 15:04:06 +0000 (15:04 +0000)
committerGary Williams <gwilliams@openldap.org>
Tue, 27 Mar 2001 15:04:06 +0000 (15:04 +0000)
servers/slapd/backend.c

index ac82f262767ee74f876049777c911ef5b4a8f0c3..600d61d7f299dcfba4bfe018e8cea89d9f4f9602 100644 (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 ) {