diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-11-25 23:43:13 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-11-25 23:43:13 +0100 |
commit | bce25ae9f5e33beb499a78a28834edb9734f643b (patch) | |
tree | 356d2ed81f174a2855444a218017a1b0f5715653 | |
parent | 2386db2410c2f0595bc07ae8b71b936201a13539 (diff) | |
parent | d41b06238dc2167f8e470aa2fb31cb937ff8fb3e (diff) |
Merge commit 'd41b0623' into wireguard-next-tmp7-1
-rw-r--r-- | filter/config.Y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/config.Y b/filter/config.Y index d14dd6ae..608a8895 100644 --- a/filter/config.Y +++ b/filter/config.Y @@ -1118,7 +1118,7 @@ var: for_var: 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: |