Skip to content
Snippets Groups Projects
Commit acf1885b authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Lax parser

parent eb4a893a
No related branches found
No related tags found
No related merge requests found
/* 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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment