Don't optimize away a rule that includes nfacct matches.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-06-01 13:02:39 -07:00
parent 4a05e56d6d
commit 4340bcffb1

View File

@ -3247,7 +3247,7 @@ sub optimize_level4( $$ ) {
while ( @$rulesref ) {
my $rule1ref = $rulesref->[-1];
last unless ( $rule1ref->{target} || '' ) eq $target && ! $rule1ref->{targetopts};
last unless ( $rule1ref->{target} || '' ) eq $target && ! ( $rule1ref->{targetopts} || $rule1ref->{nfacct} );
trace ( $chainref, 'D', $rule, $rule1ref ) if $debug;