Small Efficiency Change

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-05-13 10:52:04 -07:00
parent c8133145e6
commit 200d347ac8

View File

@ -350,14 +350,16 @@ sub set_policy_chain($$$$$$)
my $chainref1 = $filter_table->{$chain1}; my $chainref1 = $filter_table->{$chain1};
$chainref1 = new_rules_chain $chain1 unless $chainref1; if ( $chainref ) {
if ( $intrazone && if ( $intrazone &&
$source eq $dest && $source eq $dest &&
$chainref1->{provisional} ) { $chainref1->{provisional} ) {
$chainref1->{policychain} = ''; $chainref1->{policychain} = '';
$chainref1->{provisional} = ''; $chainref1->{provisional} = '';
} }
} else {
$chainref1 = new_rules_chain $chain1;
}
unless ( $chainref1->{policychain} ) { unless ( $chainref1->{policychain} ) {
if ( $config{EXPAND_POLICIES} ) { if ( $config{EXPAND_POLICIES} ) {