Browse code

Fix compilation errors when SAVE_TO_DISC is not defined

git-svn: trunk@2527

Nigel Horne authored on 2006/11/30 18:36:18
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Thu Nov 30 09:35:46 GMT 2006 (njh)
2
+----------------------------------
3
+  * libclamav/mbox.c:	Fix compilation errors when SAVE_TO_DISC is not defined
4
+
1 5
 Wed Nov 29 16:04:18 GMT 2006 (njh)
2 6
 ----------------------------------
3 7
   * libclamav/pst.c:	Handle "all day appointment flag" patch posted to
... ...
@@ -16,7 +16,7 @@
16 16
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 17
  *  MA 02110-1301, USA.
18 18
  */
19
-static	char	const	rcsid[] = "$Id: mbox.c,v 1.360 2006/11/24 22:23:16 njh Exp $";
19
+static	char	const	rcsid[] = "$Id: mbox.c,v 1.361 2006/11/30 09:35:22 njh Exp $";
20 20
 
21 21
 #ifdef	_MSC_VER
22 22
 #include <winsock.h>	/* only needed in CL_EXPERIMENTAL */
... ...
@@ -5311,8 +5311,8 @@ do_multipart(message *mainMessage, message **messages, int i, int *rc, mbox_ctx
5311 5311
 			 * Scan in memory, faster but is open to DoS attacks
5312 5312
 			 * when many nested levels are involved.
5313 5313
 			 */
5314
-			body = parseEmailHeaders(aMessage, mctx->rfc821Table,
5315
-				TRUE);
5314
+			body = parseEmailHeaders(aMessage, mctx->rfc821Table);
5315
+
5316 5316
 			/*
5317 5317
 			 * We've fininished with the
5318 5318
 			 * original copy of the message,
... ...
@@ -5325,8 +5325,8 @@ do_multipart(message *mainMessage, message **messages, int i, int *rc, mbox_ctx
5325 5325
 			messageDestroy(messages[i]);
5326 5326
 			messages[i] = NULL;
5327 5327
 			if(body) {
5328
-				messageSetCTX(body, ctx);
5329
-				rc = parseEmailBody(body, NULL, mctx, recursion_level + 1);
5328
+				messageSetCTX(body, mctx->ctx);
5329
+				*rc = parseEmailBody(body, NULL, mctx, recursion_level + 1);
5330 5330
 				if(messageContainsVirus(body))
5331 5331
 					*rc = 3;
5332 5332
 				messageDestroy(body);