Correct optimize level 8 handling of policy and policychain

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-08-07 16:56:30 -07:00
parent 8db4265ccc
commit a504820d19
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -3900,6 +3900,12 @@ sub optimize_level8( $$$ ) {
} }
$combined{ $chainref1->{name} } = $chainref->{name}; $combined{ $chainref1->{name} } = $chainref->{name};
if ( $chainref->{policychain} ) {
$chainref1->{policychain} = $chainref->{policychain}, $chainref1->{policy} = $chainref->{policy} unless $chainref1->{policychain};
} elsif ( $chainref1->{policychain} ) {
$chainref->{policychain} = $chainref1->{policychain}, $chainref->{policy} = $chainref1->{policy} unless $chainref->{policychain};
}
} }
} }
} }