summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-10-04 19:55:11 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2010-10-04 19:55:11 +0200
commitb2b7bbfc690a7ad6a61a8cdf4abe87345057fb2e (patch)
tree3408a1acd4e6161367cddeaa939c0b0771f64e36 /filter
parent0d1b3c4c0e3261d1d4261e9aeb9975a01d0ff2f9 (diff)
downloadbird-b2b7bbfc690a7ad6a61a8cdf4abe87345057fb2e.tar
bird-b2b7bbfc690a7ad6a61a8cdf4abe87345057fb2e.zip
Fixes scope of filter symbols.
Diffstat (limited to 'filter')
-rw-r--r--filter/config.Y5
1 files changed, 3 insertions, 2 deletions
diff --git a/filter/config.Y b/filter/config.Y
index 8fb511e..8ff2046 100644
--- a/filter/config.Y
+++ b/filter/config.Y
@@ -56,8 +56,9 @@ CF_GRAMMAR
CF_ADDTO(conf, filter_def)
filter_def:
- FILTER SYM { cf_push_scope( $2 ); } filter_body {
- $2 = cf_define_symbol($2, SYM_FILTER, $4);
+ FILTER SYM { $2 = cf_define_symbol($2, SYM_FILTER, NULL); cf_push_scope( $2 ); }
+ filter_body {
+ $2->def = $4;
$4->name = $2->name;
DBG( "We have new filter defined (%s)\n", $2->name );
cf_pop_scope();