From 122d58b122d37264218e751a30c6f2eea5de51af Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 21 Jun 2014 07:58:27 -0700 Subject: [PATCH] Clear inline matches in perl_action_tcp_helper Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index f7ecc41c8..e00c94a5d 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -3023,6 +3023,8 @@ sub perl_action_tcp_helper($$) { $proto .= ' ' unless $proto =~ /^(?:.+\s)?$/; + set_inline_matches( '' ) if $config{INLINE_MATCHES}; + if ( $passedproto eq '-' || $passedproto eq 'tcp' || $passedproto eq '6' ) { # # For other protos, a 'no rule generated' warning will be issued