diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 8ed2d120a..bf0dd38e9 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -715,8 +715,8 @@ sub clear_rule_target( $ ) { assert( reftype $ruleref ); delete $ruleref->{jump}; - delete $ruleref->{target}; delete $ruleref->{targetopts}; + $ruleref->{target} = ''; 1; }