git-svn: trunk@2857
Nigel Horne authored on 2007/02/24 22:41:21... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Sat Feb 24 11:44:34 GMT 2007 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/mbox.c: Fix confusion when recursing to multipart/related |
|
4 |
+ |
|
1 | 5 |
Sat Feb 24 02:32:57 CET 2007 (tk) |
2 | 6 |
--------------------------------- |
3 | 7 |
* configure, libclamav: add support for HP-UX 11.11 with native |
... | ... |
@@ -2637,10 +2637,9 @@ parseEmailBody(message *messageIn, text *textIn, mbox_ctx *mctx, unsigned int re |
2637 | 2637 |
cli_dbgmsg("No HTML code found to be scanned\n"); |
2638 | 2638 |
else { |
2639 | 2639 |
rc = parseEmailBody(aMessage, aText, mctx, recursion_level + 1); |
2640 |
- if(rc == OK) { |
|
2640 |
+ if((rc == OK) && aMessage) { |
|
2641 | 2641 |
assert(aMessage == messages[htmltextPart]); |
2642 |
- if(aMessage) |
|
2643 |
- messageDestroy(aMessage); |
|
2642 |
+ messageDestroy(aMessage); |
|
2644 | 2643 |
messages[htmltextPart] = NULL; |
2645 | 2644 |
} |
2646 | 2645 |
} |