0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 12:48:43 +00:00

Filter: explicitly forbidden for-loop with pre-defined variable

This commit is contained in:
Maria Matejka 2023-10-04 19:57:55 +02:00
parent 6a242b3ec6
commit d41b06238d

View File

@ -974,7 +974,7 @@ var:
for_var: for_var:
type symbol { $$ = cf_define_symbol(new_config, $2, SYM_VARIABLE | $1, offset, f_new_var(sym_->scope)); } type symbol { $$ = cf_define_symbol(new_config, $2, SYM_VARIABLE | $1, offset, f_new_var(sym_->scope)); }
| CF_SYM_KNOWN { $$ = $1; cf_assert_symbol($1, SYM_VARIABLE); } | CF_SYM_KNOWN { cf_error("Use of a pre-defined variable in for loop is not allowed"); }
; ;
cmd: cmd: