mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-23 09:22:59 +02:00
ids-functions.pl: Remove temporary file, if the download failed.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -393,6 +393,9 @@ sub downloadruleset ($) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
# Remove temporary file, if one exists.
|
||||
unlink("$tmpfile") if (-e "$tmpfile");
|
||||
|
||||
# Increase download attempt counter.
|
||||
$dl_attempt++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user