Browse code

Bug 433

git-svn: trunk@3009

Nigel Horne authored on 2007/04/07 02:59:41
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Fri Apr  6 18:02:02 BST 2007 (njh)
2
+----------------------------------
3
+  * clamav-milter/clamav-milter.c:	Bug 433
4
+
1 5
 Thu Apr  5 20:46:38 CEST 2007 (acab)
2 6
 ------------------------------------
3 7
   * libclamav: update file headers
... ...
@@ -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-070330"
36
+#define	CM_VERSION	"devel-070406"
37 37
 
38 38
 #if HAVE_CONFIG_H
39 39
 #include "clamav-config.h"
... ...
@@ -1843,7 +1843,7 @@ main(int argc, char **argv)
1843 1843
 		free(p);
1844 1844
 
1845 1845
 		if((fd = fopen(pidfile, "w")) == NULL) {
1846
-			logg(_("!Can't save PID in file %s"), pidfile);
1846
+			logg(_("!Can't save PID in file %s\n"), pidfile);
1847 1847
 			return EX_CONFIG;
1848 1848
 		}
1849 1849
 #ifdef	C_LINUX
... ...
@@ -4934,8 +4934,8 @@ isLocal(const char *addr)
4934 4934
 			for(j = 0; match && j < pnet6->preflen >> 3; j++)
4935 4935
 				if(pnet6->base.s6_addr[j] != ip6.s6_addr[j])
4936 4936
 					match = 0;
4937
-			if(match && j < 16) {
4938
-				u_int8_t mask = 0xff << (8 - (pnet6->preflen & 7));
4937
+			if(match && (j < 16)) {
4938
+				uint8_t mask = 0xff << (8 - (pnet6->preflen & 7));
4939 4939
 
4940 4940
 				if((pnet6->base.s6_addr[j] & mask) != (ip6.s6_addr[j] & mask))
4941 4941
 					match = 0;
... ...
@@ -5287,7 +5287,7 @@ quit(void)
5287 5287
 #ifdef	SESSION
5288 5288
 	pthread_mutex_lock(&version_mutex);
5289 5289
 #endif
5290
-	logg(_("Stopping %s"), clamav_version);
5290
+	logg(_("Stopping %s\n"), clamav_version);
5291 5291
 #ifdef	SESSION
5292 5292
 	pthread_mutex_unlock(&version_mutex);
5293 5293
 #endif