From 054837aeea89feaf7ad2109e05687402c073514f Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 3 Apr 2016 13:04:25 -0700 Subject: [PATCH] Use the real chain name in log messages Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index badd3df56..43ca51d0f 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -6335,7 +6335,7 @@ sub log_rule_limit( $$$$$$$$;$ ) { my ($level, $chainref, $chn, $dispo, $limit, $tag, $command, $matches, $origin ) = @_; my $prefix = ''; - my $chain = get_action_chain_name || $chn; + my $chain = $actparams{0} ? $actparams{0}->{name} : $chn; my $disposition = get_action_disposition || $dispo; my $original_matches = $matches; my $ruleref; @@ -6435,7 +6435,7 @@ sub log_irule_limit( $$$$$$$$@ ) { my $prefix = ''; my %matches; - my $chain = get_action_chain_name || $chn; + my $chain = $actparams{0} ? $actparams{0}->{name} : $chn; my $disposition = get_action_disposition || $dispo; my $original_matches = @matches;