diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 509e1c69b..7ff95215e 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -7570,7 +7570,7 @@ sub expand_rule( $$$$$$$$$$$;$ ) $exceptionrule, $actparms{disposition} || $disposition, $target ), - $terminating{$basictarget} || ( $targetref || $targetref->{complete} ), + $terminating{$basictarget} || ( $targetref && $targetref->{complete} ), $matches ); }