mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-01 07:25:42 +02:00
Eliminate unnecessary local array
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
97de2be778
commit
fb4b362724
@ -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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user