From 79430673b8b4dc7cdfc9d1980bcc6718c2ccb41b Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 16 Dec 2014 19:08:25 -0800 Subject: [PATCH] Correct handling of duplicate states in the mangle file Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Tc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Tc.pm b/Shorewall/Perl/Shorewall/Tc.pm index 8e7b6c63f..5156ff818 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -765,7 +765,7 @@ sub process_mangle_rule1( $$$$$$$$$$$$$$$$$$ ) { for ( @state ) { fatal_error "Invalid STATE ($_)" unless exists $state{$_}; - fatal_error "Duplicate STATE ($_)" if $state{$_}; + fatal_error "Duplicate STATE ($_)" if $state{$_}++; } } else { $state = 'ALL';