diff --git a/firewall/firewall-lib.pl b/firewall/firewall-lib.pl index 7b3b5c069..f66adda43 100755 --- a/firewall/firewall-lib.pl +++ b/firewall/firewall-lib.pl @@ -527,7 +527,7 @@ local @oldjumps = grep { $_->{'chain'} eq 'INPUT' && # Get all new fail2ban chain rules and inputs that jump to them local @newrules = grep { $_->{'chain'} =~ /^f2b-/ } @$newrules; local @newjumps = grep { $_->{'chain'} eq 'INPUT' && - $_->{'j'}->[1] =~ /^f2b-/ } @newrules; + $_->{'j'}->[1] =~ /^f2b-/ } @$newrules; # Re-create the chains my @oldchains = &unique(map { $_->{'chain'} } @oldrules);