Fix a couple of minor problems in Accounting.pm

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8038 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-01-10 20:55:27 +00:00
parent 384e88df43
commit e68ab78eda

View File

@ -101,7 +101,9 @@ sub process_accounting_rule( $$$$$$$$$ ) {
if ( $cmd eq 'COUNT' ) {
$rule2=1;
$target = jump_to_chain $action;
} elsif ( $cmd ne 'JUMP' ) {
} elsif ( $cmd eq 'JUMP' ) {
$target = jump_to_chain $action;
} else {
accounting_error;
}
} else {
@ -134,7 +136,7 @@ sub process_accounting_rule( $$$$$$$$$ ) {
'' ,
$target ,
'' ,
'' ,
$disposition ,
'' );
}
}