Commit a66e7e35 authored by Federico G. Schwindt's avatar Federico G. Schwindt Committed by Lasse Karstensen

Only accept C identifiers as acls

OK'd by phk@.

Fixes #1883.
parent 61a66b7b
......@@ -1215,7 +1215,7 @@ vcc_expr_cmp(struct vcc *tl, struct expr **e, enum var_type fmt)
(tl->t->tok == '~' || tl->t->tok == T_NOMATCH)) {
not = tl->t->tok == '~' ? "" : "!";
vcc_NextToken(tl);
ExpectErr(tl, ID);
vcc_ExpectCid(tl);
vcc_AddRef(tl, tl->t, SYM_ACL);
bprintf(buf, "%smatch_acl_named_%.*s(ctx, \v1)",
not, PF(tl->t));
......
Markdown is supported
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