Browse code

Fixed error message if no server can be found

git-svn: trunk@3015

Nigel Horne authored on 2007/04/12 17:41:29
Showing 2 changed files
... ...
@@ -1,7 +1,11 @@
1
+Thu Apr 12 08:46:09 BST 2007 (njh)
2
+----------------------------------
3
+  * clamav-milter:	Fixed error message if no server can be found
4
+
1 5
 Mon Apr  9 04:43:54 BST 2007 (njh)
2 6
 ----------------------------------
3 7
   * clamav-milter:	EXPERIMENTAL:	Added not about notifications from
4
-  				the jail
8
+				the jail
5 9
 Mon Apr  9 04:26:56 BST 2007 (njh)
6 10
 ----------------------------------
7 11
   * clamav-milter:	EXPERIMENTAL: added --chroot
... ...
@@ -33,7 +33,7 @@
33 33
  */
34 34
 static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.312 2007/02/12 22:24:21 njh Exp $";
35 35
 
36
-#define	CM_VERSION	"devel-070409"
36
+#define	CM_VERSION	"devel-070412"
37 37
 
38 38
 #if HAVE_CONFIG_H
39 39
 #include "clamav-config.h"
... ...
@@ -1568,7 +1568,7 @@ main(int argc, char **argv)
1568 1568
 		if(activeServers == 0) {
1569 1569
 			cli_errmsg(_("Check your entry for TCPSocket in %s\n"),
1570 1570
 				cfgfile);
1571
-			fputs(_("!Can't find any clamd server"), stderr);
1571
+			logg(_("!Can't find any clamd server\n"));
1572 1572
 			return EX_CONFIG;
1573 1573
 		}
1574 1574
 #endif
... ...
@@ -3010,7 +3010,8 @@ clamfi_body(SMFICTX *ctx, u_char *bodyp, size_t len)
3010 3010
 
3011 3011
 	/*
3012 3012
 	 * TODO:
3013
-	 *	If not in external mode, call cli_scanbuff here
3013
+	 *	If not in external mode, call cli_scanbuff here, at least for
3014
+	 * the first block
3014 3015
 	 */
3015 3016
 	/*
3016 3017
 	 * Lines starting with From are changed to >From, to