From: Kurt Zeilenga Date: Thu, 20 Jun 2002 20:48:19 +0000 (+0000) Subject: Yet another schema error bug fix X-Git-Tag: NO_SLAP_OP_BLOCKS~1402 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=54d5d65791216819349aa76bd5943e8d580eb2c6;p=openldap Yet another schema error bug fix --- diff --git a/servers/slapd/schemaparse.c b/servers/slapd/schemaparse.c index c3e8f0b6a6..1f9138753b 100644 --- a/servers/slapd/schemaparse.c +++ b/servers/slapd/schemaparse.c @@ -47,7 +47,7 @@ static char *const err2text[] = { char * scherr2str(int code) { - if ( code < 0 || SLAP_SCHERR_LAST < code ) { + if ( code < 0 || SLAP_SCHERR_LAST <= code ) { return "Unknown error"; } else { return err2text[code];