Browse code

Fixed handling of MaxThreads

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@74 77e5149b-7576-45b1-b177-96237e5ba77b

Nigel Horne authored on 2003/10/05 22:59:09
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Sun Oct  5 14:58:05 BST 2003 (njh)
2
+----------------------------------
3
+  * clamav-milter: s/atoi(cpt->strarg)/cpt->numarg for MaxThreads
4
+
1 5
 Sat Oct  4 20:04:39 CEST 2003 (tk)
2 6
 ----------------------------------
3 7
   * clamav.conf: s/RemoveStaleSocket/FixStaleSocket (thanks to Kristof Petr)
... ...
@@ -137,6 +137,9 @@
137 137
  *
138 138
  * Change History:
139 139
  * $Log: clamav-milter.c,v $
140
+ * Revision 1.11  2003/10/05 13:57:47  nigelhorne
141
+ * Fixed handling of MaxThreads
142
+ *
140 143
  * Revision 1.10  2003/10/03 11:54:53  nigelhorne
141 144
  * Added white list of recipients
142 145
  *
... ...
@@ -153,7 +156,7 @@
153 153
  * Added -f flag use MaxThreads if --max-children not set
154 154
  *
155 155
  */
156
-static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.10 2003/10/03 11:54:53 nigelhorne Exp $";
156
+static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.11 2003/10/05 13:57:47 nigelhorne Exp $";
157 157
 
158 158
 #define	CM_VERSION	"0.60j"
159 159
 
... ...
@@ -483,7 +486,7 @@ main(int argc, char **argv)
483 483
 	 * is set in the config file
484 484
 	 */
485 485
 	if((max_children == 0) && ((cpt = cfgopt(copt, "MaxThreads")) != NULL))
486
-		max_children = atoi(cpt->strarg);
486
+		max_children = cpt->numarg;
487 487
 
488 488
 	/*
489 489
 	 * Get the outgoing socket details - the way to talk to clamd