From dd3c0daa08c064c05a15577658bcfc9652377f03 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 29 Mar 2016 13:33:47 -0700 Subject: [PATCH] Handle inline matches correctly in the mangle file Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index c12f2ffea..6b3c0e916 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -3793,6 +3793,7 @@ sub process_mangle_inline( $$$$$$$$$$$$$$$$$$$ ) { $chainref->{name} ); my $inlinefile = $actions{$inline}{file}; + my $matches = fetch_inline_matches; progress_message "..Expanding inline action $inlinefile..."; @@ -3887,6 +3888,8 @@ sub process_mangle_inline( $$$$$$$$$$$$$$$$$$$ ) { } progress_message " Rule \"$currentline\" $done"; + + set_inline_matches( $matches ); } pop_comment( $save_comment );