mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 12:15:52 +02:00
convert-snort: Fix logic for detecting enough free disk space.
The subfunction only will return something if the check fails - so the logic of the if statement was wrong set and the downloader only was called if this check failed and to less diskspace would be available. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
ee53381ab1
commit
e4bc9b8b6f
@@ -231,6 +231,9 @@ if (-f $snort_rules_tarball) {
|
||||
} else {
|
||||
# Check if enought disk space is available.
|
||||
if(&IDS::checkdiskspace()) {
|
||||
# Print error message.
|
||||
print "Could not download ruleset - Not enough free diskspace available.\n";
|
||||
} else {
|
||||
# Call the download function and grab the new ruleset.
|
||||
&IDS::downloadruleset();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user