Don't scan the filter table for jumps to 'blacklst' if the 'blacklst' chain does not exist

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-09-18 08:42:21 -07:00
parent c3299d5f89
commit 0e9c704069

View File

@ -3684,9 +3684,12 @@ sub expand_rule( $$$$$$$$$$;$ )
# the associated interface chain
#
sub promote_blacklist_rules() {
my $promoted = 1;
my $chainbref = $filter_table->{blacklst};
return 1 unless $chainbref;
my $promoted = 1;
while ( $promoted ) {
$promoted = 0;