From: Kurt Zeilenga Date: Mon, 28 May 2001 19:40:42 +0000 (+0000) Subject: Fix empty suffix separator test. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1384 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7d89fb5446d8023172d66f6df07d6ece813e234a;p=openldap Fix empty suffix separator test. --- 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; }