From dc643c67e9a6765abda5824a74992a5ffbc46391 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 5 Oct 2009 14:23:43 -0700 Subject: [PATCH] Move declaration to inner block where it is used --- Shorewall/Perl/Shorewall/Rules.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index c049289f9..7dc44d862 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -330,13 +330,14 @@ sub process_routestopped() { } unless ( $options eq '-' ) { - my $chainref = $filter_table->{FORWARD}; for my $option (split /,/, $options ) { if ( $option eq 'routeback' ) { if ( $routeback ) { warning_message "Duplicate 'routeback' option ignored"; } else { + my $chainref = $filter_table->{FORWARD}; + $routeback = 1; for my $host ( split /,/, $hosts ) {