ids-functions.pl: Remove temporary file, if the download failed.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2022-03-21 20:21:21 +01:00
parent e71804fb82
commit 304ce130fd

View File

@@ -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++;
}