git-svn: trunk@2736
Nigel Horne authored on 2007/02/13 19:03:13... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Tue Feb 13 10:02:26 GMT 2007 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/mbox.c: Fix valgrind error, which could theoretically lead |
|
4 |
+ to a false positive |
|
5 |
+ |
|
1 | 6 |
Mon Feb 12 23:34:38 GMT 2007 (njh) |
2 | 7 |
--------------------------------- |
3 | 8 |
* libclamav/mbox.c: Fix compilation error on platforms without SO_ERROR |
... | ... |
@@ -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.376 2007/02/12 23:34:24 njh Exp $"; |
|
19 |
+static char const rcsid[] = "$Id: mbox.c,v 1.377 2007/02/13 10:02:05 njh Exp $"; |
|
20 | 20 |
|
21 | 21 |
#ifdef _MSC_VER |
22 | 22 |
#include <winsock.h> /* only needed in CL_EXPERIMENTAL */ |
... | ... |
@@ -2055,6 +2055,8 @@ parseEmailBody(message *messageIn, text *textIn, mbox_ctx *mctx, unsigned int re |
2055 | 2055 |
} |
2056 | 2056 |
} |
2057 | 2057 |
|
2058 |
+ rc = OK; |
|
2059 |
+ |
|
2058 | 2060 |
/* Anything left to be parsed? */ |
2059 | 2061 |
if(mainMessage && (messageGetBody(mainMessage) != NULL)) { |
2060 | 2062 |
mime_type mimeType; |
... | ... |
@@ -2069,7 +2071,6 @@ parseEmailBody(message *messageIn, text *textIn, mbox_ctx *mctx, unsigned int re |
2069 | 2069 |
|
2070 | 2070 |
cli_dbgmsg("Parsing mail file\n"); |
2071 | 2071 |
|
2072 |
- rc = OK; |
|
2073 | 2072 |
mimeType = messageGetMimeType(mainMessage); |
2074 | 2073 |
mimeSubtype = messageGetMimeSubtype(mainMessage); |
2075 | 2074 |
|