]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Lax parser
authorKurt Zeilenga <kurt@openldap.org>
Wed, 2 May 2001 20:25:31 +0000 (20:25 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 2 May 2001 20:25:31 +0000 (20:25 +0000)
servers/slapd/schemaparse.c

index 855e503ef2064811fc486abeef43a069bcb052d6..6b377f608de21e34fa69c83e676c994119e948b2 100644 (file)
@@ -1,3 +1,4 @@
+/* schemaparse.c - routines to parse config file objectclass definitions */
 /* $OpenLDAP$ */
 /*
  * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
@@ -272,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;