Correct trace output

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2014-09-25 14:47:00 -07:00
parent b84a9e16e6
commit 4989f694cd

View File

@ -1682,8 +1682,8 @@ sub insert_irule( $$$$;@ ) {
$ruleref->{comment} = shortlineinfo( $chainref->{origin} ) || $ruleref->{comment} || $comment;
if ( $number >= @$rulesref ) {
$number = @$rulesref;
push @$rulesref, $ruleref;
$number = @$rulesref;
} else {
splice( @$rulesref, $number, 0, $ruleref );
$number++;