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; }