[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b

Tomasz Kojm tkojm at clamav.net
Sun Apr 4 01:04:09 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit eabfc24218aa7060fd3355c5719242298ed8f860
Author: Tomasz Kojm <tkojm at clamav.net>
Date:   Thu Sep 3 15:13:21 2009 +0200

    freshclam/mirman.c: make backoff time proportional to FLEVEL (bb#1687)

diff --git a/ChangeLog b/ChangeLog
index 4b19fa8..d35a0f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Sep  3 15:09:57 CEST 2009 (tk)
+----------------------------------
+ * freshclam/mirman.c: make backoff time proportional to FLEVEL (bb#1687)
+
 Tue Sep  1 20:50:12 CEST 2009 (tk)
 ----------------------------------
  * libclamav: use BM matcher in offset mode for PE files larger than 256kB
diff --git a/freshclam/mirman.c b/freshclam/mirman.c
index 2b34a76..e9a9e0a 100644
--- a/freshclam/mirman.c
+++ b/freshclam/mirman.c
@@ -133,7 +133,7 @@ int mirman_check(uint32_t *ip, int af, struct mirdat *mdat, struct mirdat_ip **m
 	    }
 
 	    if(mdat->dbflevel && (mdat->dbflevel > flevel) && (mdat->dbflevel - flevel > 3))
-		if(time(NULL) - mdat->mirtab[i].atime < 4 * 3600)
+		if(time(NULL) - mdat->mirtab[i].atime < (mdat->dbflevel - flevel) * 3600)
 		    return 2;
 
 	    if(mdat->mirtab[i].ignore) {

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list