From c2fd48c4c677680a99cfd6b70d2bfd71e607bf46 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 13 Mar 2016 10:08:17 -0700 Subject: [PATCH] Include pre-rule matches when the target is a chain 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 a187a7c62..4d9c013ca 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -7746,7 +7746,7 @@ sub expand_rule( $$$$$$$$$$$$;$ ) # No logging or user-specified logging -- add the target rule with matches to the rule chain # if ( $targetref ) { - add_expanded_jump( $chainref, $targetref , 0, $matches ); + add_expanded_jump( $chainref, $targetref , 0, $prerule . $matches ); } else { add_rule( $chainref, $prerule . $matches . $jump , 1 ); }