]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/schemaparse.c
Fix debug statement
[openldap] / servers / slapd / schemaparse.c
index c3e8f0b6a69d80af83a6fd352fcecc6b5ebdbe86..ffbf47dc22d3f2d2ff26c5c1c7e8d4f9da4eb03c 100644 (file)
@@ -25,8 +25,8 @@ static char *const err2text[] = {
        "Success",
        "Out of memory",
        "ObjectClass not found",
-       "ObjectClass inappropriate SUPerior",
-       "ObjectClass operational",
+       "user-defined ObjectClass has inappropriate SUPerior",
+       "user-defined ObjectClass includes operational attributes",
        "Duplicate objectClass",
        "AttributeType not found",
        "AttributeType inappropriate USAGE",
@@ -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];