From 0c8365001d68a5fce381fb6db3f8e64bf4ba9055 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 28 Mar 2014 08:55:00 -0700 Subject: [PATCH] Avoid spurious comments on jumps to section chains. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 2e3bb54cd..8e3965aa2 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -2497,10 +2497,12 @@ sub process_rule ( $$$$$$$$$$$$$$$$$$$ ) { my $auxref = $filter_table->{$auxchain}; unless ( $auxref ) { + my $save_comment = push_comment; $auxref = new_chain 'filter', $auxchain; $auxref->{blacklistsection} = 1 if $blacklist; add_ijump( $chainref, j => $auxref, state_imatch( $section_states{$section} ) ); + pop_comment( $save_comment ); } $chain = $auxchain;