forked from extern/shorewall_code
Simplify a test
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
e7a4aaafc1
commit
1030c852f9
@ -1783,7 +1783,7 @@ sub optimize_ruleset() {
|
||||
next if not @$rules;
|
||||
CHAIN:
|
||||
for my $chainref1 ( grep $_->{referenced}, values %{$chain_table{$table}} ) {
|
||||
next if $chainref->{name} eq $chainref1->{name};
|
||||
next if $chainref eq $chainref1;
|
||||
my $rules1 = $chainref1->{rules};
|
||||
next if @$rules != @$rules1;
|
||||
next if $chainref1->{dont_delete};
|
||||
|
Loading…
Reference in New Issue
Block a user