From fb4b3627240bd69bd29f68baf60a19ccb8ef689c Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 20 Jan 2018 13:26:10 -0800 Subject: [PATCH] Eliminate unnecessary local array Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 49554f75f..a4ada5e7a 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -953,13 +953,9 @@ sub add_policy_rules( $$$$$ ) { my ( $chainref , $target, $loglevel, $pactions, $dropmulticast ) = @_; unless ( $target eq 'NONE' ) { - my @pactions; - - @pactions = @$pactions; - add_ijump $chainref, j => 'RETURN', d => '224.0.0.0/4' if $dropmulticast && $target ne 'CONTINUE' && $target ne 'ACCEPT'; - for my $paction ( @pactions ) { + for my $paction ( @$pactions ) { my ( $action ) = split ':', $paction; if ( ( $targets{$action} || 0 ) & ACTION ) {