git-svn: trunk@1844
Nigel Horne authored on 2006/02/10 06:44:17... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Thu Feb 9 21:42:22 GMT 2006 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * clamav-milter: Improved handling of messages with no body |
|
4 |
+ |
|
1 | 5 |
Tue Feb 7 11:34:17 GMT 2006 (njh) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav/message.c: Some Trojan.Downloader.Small-1011 were not |
... | ... |
@@ -22,9 +22,9 @@ |
22 | 22 |
* |
23 | 23 |
* For installation instructions see the file INSTALL that came with this file |
24 | 24 |
*/ |
25 |
-static char const rcsid[] = "$Id: clamav-milter.c,v 1.232 2006/02/05 14:16:46 nigelhorne Exp $"; |
|
25 |
+static char const rcsid[] = "$Id: clamav-milter.c,v 1.233 2006/02/09 21:44:17 nigelhorne Exp $"; |
|
26 | 26 |
|
27 |
-#define CM_VERSION "devel-050206" |
|
27 |
+#define CM_VERSION "devel-090206" |
|
28 | 28 |
|
29 | 29 |
#if HAVE_CONFIG_H |
30 | 30 |
#include "clamav-config.h" |
... | ... |
@@ -3216,7 +3216,7 @@ clamfi_eom(SMFICTX *ctx) |
3216 | 3216 |
snprintf(reject, sizeof(reject) - 1, _("virus %s detected by ClamAV - http://www.clamav.net"), virusname); |
3217 | 3217 |
smfi_setreply(ctx, (char *)privdata->rejectCode, "5.7.1", reject); |
3218 | 3218 |
broadcast(mess); |
3219 |
- } else if(strstr(mess, "OK") == NULL) { |
|
3219 |
+ } else if((strstr(mess, "OK") == NULL) && (strstr(mess, "Empty file") == NULL)) { |
|
3220 | 3220 |
if(!nflag) |
3221 | 3221 |
smfi_addheader(ctx, "X-Virus-Status", _("Unknown")); |
3222 | 3222 |
if(use_syslog) |
... | ... |
@@ -4077,9 +4077,10 @@ sendToFrom(struct privdata *privdata) |
4077 | 4077 |
} |
4078 | 4078 |
free(msg); |
4079 | 4079 |
} else { |
4080 |
- clamfi_send(privdata, 0, |
|
4081 |
- "Received: by clamav-milter\nFrom: %s\n", |
|
4082 |
- privdata->from); |
|
4080 |
+ if(clamfi_send(privdata, 0, |
|
4081 |
+ "Received: by clamav-milter\nFrom: %s\n", |
|
4082 |
+ privdata->from) <= 0) |
|
4083 |
+ return 0; |
|
4083 | 4084 |
|
4084 | 4085 |
for(to = privdata->to; *to; to++) |
4085 | 4086 |
if(clamfi_send(privdata, 0, "To: %s\n", *to) <= 0) |