Set empty target in rules created via add_irule()

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-07-24 08:28:43 -07:00
parent e693665be1
commit f2c9647579

View File

@ -1032,6 +1032,8 @@ sub push_irule( $$$;@ ) {
$ruleref->{jump} = $jump; $ruleref->{jump} = $jump;
$ruleref->{target} = $target; $ruleref->{target} = $target;
$ruleref->{targetopts} = $targetopts if $targetopts; $ruleref->{targetopts} = $targetopts if $targetopts;
} else {
$ruleref->{target} = '';
} }
if ( $comment ) { if ( $comment ) {