From 61bb73fd8c644896736f6ddb19e950b8646b2a30 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 20 Jun 2014 14:28:17 -0700 Subject: [PATCH] Correct handling of matches in action_tcp_helper() Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index b228293f0..f7ecc41c8 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -2950,7 +2950,7 @@ sub perl_action_helper($$;$) { $matches .= ' ' unless $matches =~ /^(?:.+\s)?$/; - set_inline_matches $matches if $target =~ /^INLINE(?::.*)?$/; + set_inline_matches( $target =~ /^INLINE(?::.*)?$/ ? $matches : '' ); if ( $isstatematch ) { if ( $statematch ) {