From c92ebc3908cbb2c780201e25307e03378b1eefa0 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 18 Oct 2016 14:32:56 -0700 Subject: [PATCH] Make merge_inline_source_dest() a little safer 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 76f1361e3..a4b4239f8 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -1620,7 +1620,7 @@ sub merge_inline_source_dest( $$ ) { my ( $body, $invocation ) = @_; if ( $invocation ) { - if ( $body ) { + if ( supplied $body && $body ne '-' ) { return $body if $invocation eq '-'; if ( $family == F_IPV4 ) {