From 392b6eb8d1c8c2bce63ed08e02fa47a5ff84ad37 Mon Sep 17 00:00:00 2001 From: teastep Date: Sun, 2 Mar 2008 17:14:03 +0000 Subject: [PATCH] Handle empty action properly git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8261 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Actions.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall-perl/Shorewall/Actions.pm b/Shorewall-perl/Shorewall/Actions.pm index 1b8efb8ed..4ba894862 100644 --- a/Shorewall-perl/Shorewall/Actions.pm +++ b/Shorewall-perl/Shorewall/Actions.pm @@ -290,7 +290,7 @@ sub createlogactionchain( $$ ) { $chain = substr( $chain, 0, 27 ), redo CHECKDUP if ( $actionref->{actchain} || 0 ) >= 10 and length $chain == 28; } - $logactionchains{"$action:$level"} = $chainref = new_chain 'filter', '%' . $chain . $actionref->{actchain}++; + $logactionchains{"$action:$level"} = $chainref = new_standard_chain '%' . $chain . $actionref->{actchain}++; fatal_error "Too many invocations of Action $action" if $actionref->{actchain} > 99; @@ -316,7 +316,7 @@ sub createlogactionchain( $$ ) { sub createsimpleactionchain( $ ) { my $action = shift; - my $chainref = new_chain 'filter', $action; + my $chainref = new_standard_chain $action; $logactionchains{"$action:none"} = $chainref;