From 66aa425d9211e3acb3b0eb387ec5f1b9c5c5f868 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 2 May 2001 19:43:38 +0000 Subject: [PATCH] Be a bit more liberal --- servers/slapd/schemaparse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.39.5