From 4a8f724f9bb85eb939bbaf1224cf4b2e4e79d4b9 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 28 Dec 2010 12:18:42 -0800 Subject: [PATCH] Handle duplicate chain name for action chain --- Shorewall/Perl/Shorewall/Actions.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Actions.pm b/Shorewall/Perl/Shorewall/Actions.pm index 467396e31..5995df913 100644 --- a/Shorewall/Perl/Shorewall/Actions.pm +++ b/Shorewall/Perl/Shorewall/Actions.pm @@ -218,6 +218,9 @@ sub createlogactionchain( $$$$$ ) { sub createsimpleactionchain( $ ) { my $action = shift; + + return createlogactionchain("$action:none::", $action, 'none', '', '' ) if $filter_table->{$action} || $nat_table->{$action}; + my $chainref = new_standard_chain $action; $usedactions{"$action:none::"} = $chainref;