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 5343243f6b
commit c5f2eeea80

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;