Use a hash slice in recently-added code

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-08-10 17:04:45 -07:00
parent a83c19cc33
commit da62bd2b32
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -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};
}
}
}