forked from extern/shorewall_code
Use a hash slice in recently-added code
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
a83c19cc33
commit
da62bd2b32
@ -3902,9 +3902,9 @@ sub optimize_level8( $$$ ) {
|
||||
$combined{ $chainref1->{name} } = $chainref->{name};
|
||||
|
||||
if ( $chainref->{policychain} ) {
|
||||
$chainref1->{policychain} = $chainref->{policychain}, $chainref1->{policy} = $chainref->{policy} unless $chainref1->{policychain};
|
||||
@{$chainref1}{qw(policychain policy)} = @{$chainref}{qw(policychain policy)} unless $chainref1->{policychain};
|
||||
} elsif ( $chainref1->{policychain} ) {
|
||||
$chainref->{policychain} = $chainref1->{policychain}, $chainref->{policy} = $chainref1->{policy} unless $chainref->{policychain};
|
||||
@{$chainref}{qw(policychain policy)} = @{$chainref1}{qw(policychain policy)} unless $chainref->{policychain};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user