From b132176dae11328b3868cced963604b105ff25b6 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 14 Aug 2012 13:36:39 -0700 Subject: [PATCH] Correct reference adjustment in new opt4 code Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index df77da2c3..0eb00962b 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -3018,8 +3018,8 @@ sub optimize_level4( $$ ) { # # The rule target is a chain # - add_reference( $chainref, $targetref ); - delete_reference( $sourceref, $targetref ); + add_reference( $sourceref, $targetref ); + delete_reference( $chainref, $targetref ); } }