]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
guardian: Fix priority level comparision.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 1 Nov 2014 19:11:48 +0000 (20:11 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 1 Nov 2014 19:11:48 +0000 (20:11 +0100)
config/guardian/guardian

index 2c1a6dd3b23e77a814dfbc5f572d34a9e79c0aa9..5dcbdda0641996caafe992b2299ddfe8c1040fcb 100644 (file)
@@ -262,7 +262,7 @@ sub handle_snort (@) {
        foreach my $line (@alert) {
                # Check Priority Level and skip alert if it is to low.
                if ($line =~ /.*\[Priority: (\d+)\].*/) {
-                       last if ($1 > $priority);
+                       next unless($1 < $priority);
                        &logger("debug", "Skip snort alert because alert priority ($1)
                                is lower than the configured minimum ($priority).\n");
                }