Move declaration to inner block where it is used

This commit is contained in:
Tom Eastep 2009-10-05 14:23:43 -07:00
parent ab4e7cffcf
commit dc643c67e9

View File

@ -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 ) {