From cadf2747fed86fa128ba17a23457951d47ddc4b6 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 9 Feb 2013 17:53:40 -0800 Subject: [PATCH] Correct reset_optflags() Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index d65898b5b..2d6f9b54a 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -2218,7 +2218,7 @@ sub reset_optflags( $$ ) { my $chainref = reftype $chain ? $chain : $filter_table->{$chain}; - $chainref->{optflags} ^= $flags; + $chainref->{optflags} ^= ( $flags & $chainref->{optflags} ); trace( $chainref, "O${flags}", undef, '' ) if $debug;