Make merge_inline_source_dest() a little safer

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-10-18 14:32:56 -07:00
parent bc3573fcbc
commit c92ebc3908
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -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 ) {