From 789bb8a2bbce86b064460ac62fa09c25323d5f44 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Wed, 8 Apr 2009 11:23:36 -0700 Subject: Fix faulty search loop. --- scripts/firewall/vyatta-firewall.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/firewall/vyatta-firewall.pl b/scripts/firewall/vyatta-firewall.pl index 7a9259e..6f73c77 100755 --- a/scripts/firewall/vyatta-firewall.pl +++ b/scripts/firewall/vyatta-firewall.pl @@ -129,6 +129,7 @@ sub find_chain_rule { foreach my $line (@lines) { ($num, undef, undef, $chain2) = split /\s+/, $line; last if $chain2 eq $search; + ($num, $chain2) = (undef, undef); } if ($syslog_flag) { -- cgit v1.2.3