]> git.ipfire.org Git - people/stevee/guardian.git/blobdiff - modules/Parser.pm
Merge branch 'ssh-parser'
[people/stevee/guardian.git] / modules / Parser.pm
index a73192db23701680bea149b39dd8be3306536fd1..4f03bf958064598ff5e9a38974f6ea46805bb713 100644 (file)
@@ -31,8 +31,14 @@ sub Parser ($$) {
        # Call responsible message parser.
        my $action = $logfile_parsers{$parser}->(@message);
 
-       # Return which action should be performed.
-       return "count $action";
+       # In case an action has been returned, return it too. 
+       if (defined($action)) {
+               # Return which action should be performed.
+               return "count $action";
+       }
+
+       # Return undef, no action required.
+       return undef;
 }
 
 #