From 5634b08e22ead14e9ee4fe00e899ac6b445296d5 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 17 Feb 2011 10:47:57 -0800 Subject: [PATCH] Don't clear dont_optimize flag in accounting in sectioned configuration --- Shorewall/Perl/Shorewall/Accounting.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Accounting.pm b/Shorewall/Perl/Shorewall/Accounting.pm index db41eb596..218d612f0 100644 --- a/Shorewall/Perl/Shorewall/Accounting.pm +++ b/Shorewall/Perl/Shorewall/Accounting.pm @@ -363,7 +363,7 @@ sub setup_accounting() { } if ( $filter_table->{accounting} ) { - optimize_okay( 'accounting' ) if $section; + dont_optimize( 'accounting' ) unless $section; if ( $asection ) { add_jump( $filter_table->{FORWARD}, 'accounting', 0, '', 0, 0 ); } else {