summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/firewall/vyatta-firewall.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/firewall/vyatta-firewall.pl b/scripts/firewall/vyatta-firewall.pl
index a14ef19..95c0198 100755
--- a/scripts/firewall/vyatta-firewall.pl
+++ b/scripts/firewall/vyatta-firewall.pl
@@ -419,7 +419,7 @@ sub update_rules {
}
foreach (@rule_strs) {
if (!defined) {
- last;
+ next;
}
run_cmd("$iptables_cmd -t $table --insert $name $iptablesrule $_",
@@ -461,7 +461,7 @@ sub update_rules {
foreach (@rule_strs) {
if (!defined) {
- last;
+ next;
}
run_cmd("$iptables_cmd -t $table --insert $name $iptablesrule $_",
0, 0);