diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index 5221fa16d..62ff66c89 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -454,11 +454,10 @@ sub new_chain($$) { my ($table, $chain) = @_; my %ch; - my @rules; $ch{name} = $chain; - $ch{log} = 1 if $globals{LOGRULENUMBERS}; - $ch{rules} = \@rules; + $ch{log} = 1 if $globals{LOGRULENUMBERS}; + $ch{rules} = []; $ch{table} = $table; $chain_table{$table}{$chain} = \%ch; \%ch;