From 6e9d5f45ec389230cfb9b6a043ef79e468faa1f6 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 27 Jan 2016 16:50:03 -0800 Subject: [PATCH] Avoid spurious comment in jump to interface option chains. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 9aad6a295..43e669bb2 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -7835,9 +7835,10 @@ sub add_interface_options( $ ) { } else { for my $interface ( @input_interfaces ) { $chain1ref = $input_chains{$interface}; - add_ijump ( $chainref , - j => $chain1ref->{name}, - @input_interfaces > 1 ? imatch_source_dev( $interface ) : () )->{comment} = interface_origin( $interface ) if @{$chain1ref->{rules}}; + my $ruleref = add_ijump ( $chainref , + j => $chain1ref->{name}, + @input_interfaces > 1 ? imatch_source_dev( $interface ) : () ); + $ruleref->{comment} = interface_origin( $interface ) if @{$chain1ref->{rules}} && $config{TRACK_RULES} eq 'Yes'; } } } else {