Browse code

fixed a mail recursion loop

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

Tomasz Kojm authored on 2003/12/21 13:54:29
Showing 2 changed files
... ...
@@ -1,3 +1,9 @@
1
+Sun Dec 21 05:52:12 CET 2003 (tk)
2
+---------------------------------
3
+  * libclamav: fixed a mail recursion loop - problem reported by Alex Kah
4
+	       <alex*narfonix.com> (+ sample) and Kristof Petr
5
+	       <Kristof.P*fce.vutbr.cz>.
6
+
1 7
 Sat Dec 20 13:56:27 GMT 2003 (njh)
2 8
 ----------------------------------
3 9
   * libclamav: Ensure multipart just save the bodies of attachments
... ...
@@ -583,7 +583,10 @@ int cli_scanmail(int desc, char **virname, long int *scanned, const struct cl_no
583 583
 	int ret;
584 584
 
585 585
 
586
-    cli_dbgmsg("Starting scanmail()\n");
586
+    cli_dbgmsg("Starting cli_scanmail()\n");
587
+
588
+    if(reclev > 5) /* FIXME: a temporary workaround */
589
+	return CL_CLEAN;
587 590
 
588 591
 /*
589 592
 #ifdef CL_THREAD_SAFE