From f85d548d402e6bc5f7ba5cbb7760625b43564bc0 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 11 Apr 2013 06:23:22 -0700 Subject: [PATCH] Correct handling of MACLIST_DISPOSITION with MACLIST_TABLE=mangle Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index e07c6f1c5..f7458bad7 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -2534,10 +2534,12 @@ sub ensure_audit_chain( $;$$$ ) { my $save_comment = push_comment; - my $ref = $filter_table->{$target}; + $table = $table || 'filter'; + + my $ref = $chain_table{$table}{$target}; unless ( $ref ) { - $ref = new_chain( $table || 'filter', $target ); + $ref = new_chain( $table, $target ); unless ( $action ) { $action = $target;