From 1a2c9a08e1f1f6efb6adbb4548a60e9f0e6f5ed9 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 27 May 2011 19:56:04 -0700 Subject: [PATCH] Don't include comment in audit chain rules Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 9b061dfa9..146f41ae0 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -1139,6 +1139,8 @@ sub map_old_actions( $ ) { sub ensure_audit_chain( $;$ ) { my ( $target, $action ) = @_; + push_comment( '' ); + my $ref = $filter_table->{$target}; unless ( $ref ) { @@ -1162,6 +1164,8 @@ sub ensure_audit_chain( $;$ ) { } } + pop_comment; + return $target; }