Handle optimize level 0 in the IPV6 nat table.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-05-12 09:28:25 -07:00
parent 1bb5b89ee1
commit 4b76d8c462

View File

@ -3053,8 +3053,8 @@ sub check_optimization( $ ) {
# When an unreferenced chain is found, it is deleted unless its 'dont_delete' flag is set.
sub optimize_level0() {
for my $table ( qw/raw rawpost mangle nat filter/ ) {
next if $family == F_IPV6 && $table eq 'nat';
my $tableref = $chain_table{$table};
next unless $tableref;
my $progress = 1;