]> git.ipfire.org Git - thirdparty/bird.git/commit - filter/config.Y
Filter: Fix handling of variables in anonymous filters
authorOndrej Zajicek <santiago@crfreenet.org>
Tue, 18 Oct 2022 01:58:19 +0000 (03:58 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 18 Oct 2022 01:58:19 +0000 (03:58 +0200)
commite471f9e0fb7ade475dd3eb8b230bcb440877ee7e
tree5d9c5a23474b9a9464e75cadf3e872042fa9097e
parent324252975004154cc70623c94f05083bff100209
Filter: Fix handling of variables in anonymous filters

Define scope for anonymous filters, and also explicitly distinguish block
scopes and function/filter scopes instead of using anonymous / named
distinction.

Anonymous filters forgot to push scope, so variables for them were in
fact defined in the top scope and therefore they shared a frame. This got
broken after rework of variables, which assumed that there is a named
scope for every function/filter.
conf/cf-lex.l
conf/conf.h
filter/config.Y