Forward Firewall: hopefully fixed delte-bug. When deleting a rule, it was possible that the rulenumbers get "holes"

This commit is contained in:
Alexander Marx
2013-01-11 13:33:34 +01:00
committed by Michael Tremer
parent 1aec05a64e
commit 275a92e800

View File

@@ -510,7 +510,7 @@ sub deleterule
}
}
# Remove the very last entry.
my $last_key = (sort keys %delhash)[-1];
my $last_key = (sort {$a <=> $b} keys %delhash)[-1];
delete $delhash{$last_key};
&General::writehasharray($fwdfwsettings{'config'}, \%delhash);