]> git.sur5r.net Git - openldap/commitdiff
Fix empty suffix separator test.
authorKurt Zeilenga <kurt@openldap.org>
Mon, 28 May 2001 19:40:42 +0000 (19:40 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 28 May 2001 19:40:42 +0000 (19:40 +0000)
servers/slapd/backend.c

index 1b26ee117f3b41e94f8b01992fc0835398df8a3d..c2edb362758751b265331096fc7a744e78ac8813 100644 (file)
@@ -520,7 +520,7 @@ select_backend(
                        }
 
                        
-                       if ( (len < dnlen) && !(DN_SEPARATOR( dn[(dnlen-len)-1] )) ) {
+                       if ( len && len < dnlen && !DN_SEPARATOR( dn[(dnlen-len)-1] ) ) {
                                /* make sure we have a separator */
                                continue;
                        }