From c820c54f41523d07f51b12f748b855b13a3ca0b5 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 21 Jan 2013 09:03:27 -0800 Subject: [PATCH] Correctly handle audited RELATED_DISPOSITION Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index c86cc2cf9..c8d00e7a0 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -881,6 +881,9 @@ sub finish_chain_section ($$$) { $relatedref, $config{RELATED_DISPOSITION}, '' ); + + $related_target = ensure_audit_chain( $related_target ) if $targets{$related_target} & AUDIT; + add_ijump( $relatedref, g => $related_target ); $related_target = $relatedref->{name} unless $relatedchain;