]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes scope of filter symbols.
authorOndrej Zajicek <santiago@crfreenet.org>
Mon, 4 Oct 2010 17:55:11 +0000 (19:55 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Mon, 4 Oct 2010 17:55:11 +0000 (19:55 +0200)
filter/config.Y

index 8fb511e526ec54470ca090d3079c50801712a726..8ff20466aaff119e3955dcada97730b9a17e192f 100644 (file)
@@ -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();