# HG changeset patch # User Matti Hamalainen # Date 1250450088 -10800 # Node ID a70493b6c916e5ccead96de84c3089785fe3b473 # Parent e81bca155440a28271dcbe8b390da0c1f997228d Clear %statlist and %ignorelist when re-initializing (due to HUP), so we don't count stats twice. diff -r e81bca155440 -r a70493b6c916 README --- a/README Sun Aug 16 17:18:02 2009 +0300 +++ b/README Sun Aug 16 22:14:48 2009 +0300 @@ -1,4 +1,4 @@ -Malicious Attack Livid Termination Filter daemon (maltfilter) v0.13.0 +Malicious Attack Livid Termination Filter daemon (maltfilter) v0.13.1 ===================================================================== Programmed by Matti 'ccr' Hämäläinen (C) Copyright 2009 Tecnic Software productions (TNSP) diff -r e81bca155440 -r a70493b6c916 maltfilter --- a/maltfilter Sun Aug 16 17:18:02 2009 +0300 +++ b/maltfilter Sun Aug 16 22:14:48 2009 +0300 @@ -10,7 +10,7 @@ use Date::Parse; use Net::IP; -my $progversion = "0.13.0"; +my $progversion = "0.13.1"; my $progbanner = "Malicious Attack Livid Termination Filter daemon (maltfilter) v$progversion\n". "Programmed by Matti 'ccr' Hamalainen \n". @@ -730,6 +730,13 @@ ### Initialize sub malt_init { + %statlist = (); + undef(%statlist); + %ignorelist = (); + undef(%ignorelist); + mlog(0, "Updating initial blocklist from netfilter.\n"); + update_blocklist(-1); + foreach my $filename (@scanfiles_once) { mlog(0, "Parsing [once] ".$filename." ...\n"); if (open(INFILE, "<", $filename)) { @@ -990,8 +997,6 @@ } # Initialize -mlog(0, "Updating initial blocklist from netfilter.\n"); -update_blocklist(-1); malt_init(); # Fork to background, unless dry-running