[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 00:59:04 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit 68dbfcd9e75f692588666a06bd2a205f80c711d3
Author: Tomasz Kojm <tkojm at clamav.net>
Date:   Wed Jul 15 19:37:30 2009 +0200

    clamd: honour value of 0 in Max* options

diff --git a/ChangeLog b/ChangeLog
index 5b74b56..0ea464f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jul 15 19:36:35 CEST 2009 (tk)
+----------------------------------
+ * clamd: honour value of 0 in Max* options
+
 Wed Jul 15 19:24:03 CEST 2009 (tk)
 ----------------------------------
  * clamscan: honour value of 0 in --max-* options (bb#1650)
diff --git a/clamd/server-th.c b/clamd/server-th.c
index eecee09..5d23552 100644
--- a/clamd/server-th.c
+++ b/clamd/server-th.c
@@ -718,7 +718,7 @@ int recvloop_th(int *socketds, unsigned nsockets, struct cl_engine *engine, unsi
 #endif
 
     /* set up limits */
-    if((opt = optget(opts, "MaxScanSize"))->enabled) {
+    if((opt = optget(opts, "MaxScanSize"))->active) {
 	if((ret = cl_engine_set_num(engine, CL_ENGINE_MAX_SCANSIZE, opt->numarg))) {
 	    logg("!cl_engine_set_num(CL_ENGINE_MAX_SCANSIZE) failed: %s\n", cl_strerror(ret));
 	    cl_engine_free(engine);
@@ -731,7 +731,7 @@ int recvloop_th(int *socketds, unsigned nsockets, struct cl_engine *engine, unsi
     else
     	logg("^Limits: Global size limit protection disabled.\n");
 
-    if((opt = optget(opts, "MaxFileSize"))->enabled) {
+    if((opt = optget(opts, "MaxFileSize"))->active) {
 	if((ret = cl_engine_set_num(engine, CL_ENGINE_MAX_FILESIZE, opt->numarg))) {
 	    logg("!cl_engine_set_num(CL_ENGINE_MAX_FILESIZE) failed: %s\n", cl_strerror(ret));
 	    cl_engine_free(engine);
@@ -755,7 +755,7 @@ int recvloop_th(int *socketds, unsigned nsockets, struct cl_engine *engine, unsi
     }
 #endif
 
-    if((opt = optget(opts, "MaxRecursion"))->enabled) {
+    if((opt = optget(opts, "MaxRecursion"))->active) {
 	if((ret = cl_engine_set_num(engine, CL_ENGINE_MAX_RECURSION, opt->numarg))) {
 	    logg("!cl_engine_set_num(CL_ENGINE_MAX_RECURSION) failed: %s\n", cl_strerror(ret));
 	    cl_engine_free(engine);
@@ -768,7 +768,7 @@ int recvloop_th(int *socketds, unsigned nsockets, struct cl_engine *engine, unsi
     else
     	logg("^Limits: Recursion level limit protection disabled.\n");
 
-    if((opt = optget(opts, "MaxFiles"))->enabled) {
+    if((opt = optget(opts, "MaxFiles"))->active) {
 	if((ret = cl_engine_set_num(engine, CL_ENGINE_MAX_FILES, opt->numarg))) {
 	    logg("!cl_engine_set_num(CL_ENGINE_MAX_FILES) failed: %s\n", cl_strerror(ret));
 	    cl_engine_free(engine);

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list