From 7d89fb5446d8023172d66f6df07d6ece813e234a Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 28 May 2001 19:40:42 +0000 Subject: [PATCH] Fix empty suffix separator test. --- servers/slapd/backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/backend.c b/servers/slapd/backend.c index 1b26ee117f..c2edb36275 100644 --- a/servers/slapd/backend.c +++ b/servers/slapd/backend.c @@ -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; } -- 2.39.5