From: Kurt Zeilenga Date: Wed, 2 May 2001 19:43:38 +0000 (+0000) Subject: Be a bit more liberal X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1463 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=66aa425d9211e3acb3b0eb387ec5f1b9c5c5f868;p=openldap Be a bit more liberal --- diff --git a/servers/slapd/schemaparse.c b/servers/slapd/schemaparse.c index 37b4b48842..6b377f608d 100644 --- a/servers/slapd/schemaparse.c +++ b/servers/slapd/schemaparse.c @@ -273,8 +273,9 @@ parse_at( */ for (; argv[3]; argv++) { - if (!strcasecmp(argv[3], "syntax") && - !OID_LEADCHAR(*argv[4])) + /* Allow numeric OIDs to be wrapped in single quotes */ + if (!strcasecmp(argv[3], "syntax") && argv[4] != NULL && + !OID_LEADCHAR(argv[4][argv[4][0] == '\'' ? 1 : 0])) { int slen; Syntax *syn;