Browse code

Fix -I core dump

git-svn: trunk@2634

Nigel Horne authored on 2007/01/18 05:51:53
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Wed Jan 17 20:50:45 GMT 2007 (njh)
2
+----------------------------------
3
+  * clamav-milter:	Fix -I core dump, reported by Dennis Peterson
4
+				<dennispe * inetnw.com>
5
+
1 6
 Tue Jan 16 14:09:12 CET 2007 (tk)
2 7
 ---------------------------------
3 8
   * libclamav/loaddb.c: fix close of wrong fd (bb#233), patch from Edwin
... ...
@@ -55,7 +60,7 @@ Sat Jan 13 17:55:25 CET 2007 (tk)
55 55
 Sat Jan 13 15:37:51 CET 2007 (acab)
56 56
 -----------------------------------
57 57
   * libclamav: add Upack support from Michal Spadlinski <gim913 * gmail.com>
58
-  	       Part of the Google Summer of Code program
58
+	       Part of the Google Summer of Code program
59 59
 
60 60
 Sat Jan 13 13:33:53 CET 2007 (tk)
61 61
 ---------------------------------
... ...
@@ -24,9 +24,9 @@
24 24
  *
25 25
  * For installation instructions see the file INSTALL that came with this file
26 26
  */
27
-static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.309 2007/01/12 19:25:08 njh Exp $";
27
+static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.310 2007/01/17 20:50:10 njh Exp $";
28 28
 
29
-#define	CM_VERSION	"devel-110107"
29
+#define	CM_VERSION	"devel-170107"
30 30
 
31 31
 #if HAVE_CONFIG_H
32 32
 #include "clamav-config.h"
... ...
@@ -203,7 +203,7 @@ typedef struct header_list_struct *header_list_t;
203 203
 #define PACKADDR(a, b, c, d) (((uint32_t)(a) << 24) | ((b) << 16) | ((c) << 8) | (d))
204 204
 #define MAKEMASK(bits)	((uint32_t)(0xffffffff << (bits)))
205 205
 
206
-static const struct cidr_net {
206
+static struct cidr_net {	/* don't make this const because of -I flag */
207 207
 	uint32_t	base;
208 208
 	uint32_t	mask;
209 209
 } localNets[] = {