summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2009-04-08 11:23:36 -0700
committerStig Thormodsrud <stig@vyatta.com>2009-04-08 11:23:36 -0700
commit789bb8a2bbce86b064460ac62fa09c25323d5f44 (patch)
tree42e2b843af0579bebc21e5bee76f802e7a03e9d6 /scripts
parent6a29e7f2c5b3a7c08f7f058cf168ff065022f3b0 (diff)
downloadvyatta-cfg-firewall-789bb8a2bbce86b064460ac62fa09c25323d5f44.tar.gz
vyatta-cfg-firewall-789bb8a2bbce86b064460ac62fa09c25323d5f44.zip
Fix faulty search loop.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/firewall/vyatta-firewall.pl1
1 files changed, 1 insertions, 0 deletions
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) {