forked from extern/shorewall_code
Small Efficiency Change
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
c8133145e6
commit
200d347ac8
@ -350,13 +350,15 @@ 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} ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user