Add a comment in Shorewall::Chains::optimize_level8()

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-08-19 08:08:24 -07:00
parent 5a9f179e25
commit 8cb98f16ea
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -3900,7 +3900,10 @@ sub optimize_level8( $$$ ) {
}
$combined{ $chainref1->{name} } = $chainref->{name};
#
# While rare, it is possible for a policy chain to be combined with a non-policy chain. So we need to preserve
# the policy attributes in the combined chain
#
if ( $chainref->{policychain} ) {
@{$chainref1}{qw(policychain policy)} = @{$chainref}{qw(policychain policy)} unless $chainref1->{policychain};
} elsif ( $chainref1->{policychain} ) {