]> git.sur5r.net Git - openldap/commitdiff
Be a bit more liberal
authorKurt Zeilenga <kurt@openldap.org>
Wed, 2 May 2001 19:43:38 +0000 (19:43 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 2 May 2001 19:43:38 +0000 (19:43 +0000)
servers/slapd/schemaparse.c

index 37b4b488429fc5c260028520fd50b86b05924572..6b377f608de21e34fa69c83e676c994119e948b2 100644 (file)
@@ -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;