git-svn: trunk@2111
Nigel Horne authored on 2006/07/23 18:24:13... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Sun Jul 23 10:23:34 BST 2006 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * clamav-milter: Internal mode wasn't correctly logging |
|
4 |
+ |
|
1 | 5 |
Sat Jul 22 12:05:26 BST 2006 (njh) |
2 | 6 |
---------------------------------- |
3 | 7 |
* clamav-milter: More consistent use of ReadTimeout in the load balancing |
... | ... |
@@ -23,9 +23,9 @@ |
23 | 23 |
* |
24 | 24 |
* For installation instructions see the file INSTALL that came with this file |
25 | 25 |
*/ |
26 |
-static char const rcsid[] = "$Id: clamav-milter.c,v 1.266 2006/07/22 22:08:02 njh Exp $"; |
|
26 |
+static char const rcsid[] = "$Id: clamav-milter.c,v 1.267 2006/07/23 09:23:02 njh Exp $"; |
|
27 | 27 |
|
28 |
-#define CM_VERSION "devel-220706" |
|
28 |
+#define CM_VERSION "devel-230706" |
|
29 | 29 |
|
30 | 30 |
#if HAVE_CONFIG_H |
31 | 31 |
#include "clamav-config.h" |
... | ... |
@@ -2924,7 +2924,7 @@ clamfi_eom(SMFICTX *ctx) |
2924 | 2924 |
privdata->root = cl_dup(root); |
2925 | 2925 |
pthread_mutex_unlock(&root_mutex); |
2926 | 2926 |
if(privdata->root == NULL) { |
2927 |
- cli_errmsg("privdata->root == NULL\n"); |
|
2927 |
+ logg("!privdata->root == NULL\n"); |
|
2928 | 2928 |
clamfi_cleanup(ctx); |
2929 | 2929 |
return cl_error; |
2930 | 2930 |
} |
... | ... |
@@ -2935,10 +2935,12 @@ clamfi_eom(SMFICTX *ctx) |
2935 | 2935 |
strcpy(mess, "OK"); |
2936 | 2936 |
break; |
2937 | 2937 |
case CL_VIRUS: |
2938 |
- logg("#%s: %s FOUND", privdata->filename, virname); |
|
2938 |
+ snprintf(mess, sizeof(mess), "%s: %s FOUND", privdata->filename, virname); |
|
2939 |
+ logg("#%s", mess); |
|
2939 | 2940 |
break; |
2940 | 2941 |
default: |
2941 |
- logg("!%s: %s ERROR", privdata->filename, cl_strerror(rc)); |
|
2942 |
+ snprintf(mess, sizeof(mess), "%s: %s ERROR", privdata->filename, cl_strerror(rc)); |
|
2943 |
+ logg("!%s", mess); |
|
2942 | 2944 |
break; |
2943 | 2945 |
} |
2944 | 2946 |
cl_free(privdata->root); |