Avoid spurious comments on jumps to section chains.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2014-03-28 08:55:00 -07:00
parent 9107259a56
commit 0c8365001d

View File

@ -2497,10 +2497,12 @@ sub process_rule ( $$$$$$$$$$$$$$$$$$$ ) {
my $auxref = $filter_table->{$auxchain}; my $auxref = $filter_table->{$auxchain};
unless ( $auxref ) { unless ( $auxref ) {
my $save_comment = push_comment;
$auxref = new_chain 'filter', $auxchain; $auxref = new_chain 'filter', $auxchain;
$auxref->{blacklistsection} = 1 if $blacklist; $auxref->{blacklistsection} = 1 if $blacklist;
add_ijump( $chainref, j => $auxref, state_imatch( $section_states{$section} ) ); add_ijump( $chainref, j => $auxref, state_imatch( $section_states{$section} ) );
pop_comment( $save_comment );
} }
$chain = $auxchain; $chain = $auxchain;