diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index cca4474d5..c9bd94b64 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -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;