From 6ed3861d76ed0765e946ed525dfc4a0aa3a91b0c Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 18 Mar 2016 15:25:52 -0700 Subject: [PATCH] Correct Mangle Action Handling for second visit to the same action Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 3bf20428f..fc6488bec 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -4544,14 +4544,14 @@ sub process_mangle_rule1( $$$$$$$$$$$$$$$$$$ ) { # # Capture the name of the action chain # - $target = $ref->{name}; } else { # # We've seen this tuple before # - $target = $usedactions{$normalized_target}->{name}; + $ref = $usedactions{$normalized_target}; } + $target = $ref->{name}; $commandref->{allowedchains} = $ref->{allowedchains}; } };