From f2c96475793d45289cd87c3adc15ac2287eeba14 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 24 Jul 2011 08:28:43 -0700 Subject: [PATCH] Set empty target in rules created via add_irule() Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 9a18d07f7..94b18f83c 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -1032,6 +1032,8 @@ sub push_irule( $$$;@ ) { $ruleref->{jump} = $jump; $ruleref->{target} = $target; $ruleref->{targetopts} = $targetopts if $targetopts; + } else { + $ruleref->{target} = ''; } if ( $comment ) {