Commit 66aa425d authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Be a bit more liberal

parent 2133318d
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment