Browse code

Fixed compilation error with --enable-debug

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@217 77e5149b-7576-45b1-b177-96237e5ba77b

Nigel Horne authored on 2004/01/29 00:57:23
Showing 3 changed files
... ...
@@ -1,3 +1,9 @@
1
+Wed Jan 28 15:57:44 GMT 2004 (njh)
2
+----------------------------------
3
+  * clamav-milter: Fixed compilation error with --enable-debug
4
+  		Thanks to "Serhiy V. Matveyev" <matveyev@uatele.com> for
5
+		pointing this out to me
6
+
1 7
 Wed Jan 28 10:16:49 GMT 2004 (njh)
2 8
 ----------------------------------
3 9
   * libclamav:	Added support to scan some bounce messages
... ...
@@ -210,6 +210,7 @@ Changes
210 210
 		Dump core on LINUX if CL_DEBUG set
211 211
 		Support multiple servers separated by colons
212 212
 0.66h	26/1/04	Corrected endian problem (ntohs instead of htons)
213
+0.66i	28/1/04	Fixed compilation error with --enable-debug
213 214
 
214 215
 BUG REPORTS
215 216
 
... ...
@@ -213,9 +213,13 @@
213 213
  *			Dump core on LINUX if CL_DEBUG set
214 214
  *			Support multiple servers separated by colons
215 215
  *	0.66h	26/1/04	Corrected endian problem (ntohs instead of htons)
216
+ *	0.66i	28/1/04	Fixed compilation error with --enable-debug
216 217
  *
217 218
  * Change History:
218 219
  * $Log: clamav-milter.c,v $
220
+ * Revision 1.40  2004/01/28 15:55:59  nigelhorne
221
+ * Fixed compilation error with --enable-debug
222
+ *
219 223
  * Revision 1.39  2004/01/26 14:12:42  nigelhorne
220 224
  * Corrected endian problem (ntohs instead of htons)
221 225
  *
... ...
@@ -318,9 +322,9 @@
318 318
  * Revision 1.6  2003/09/28 16:37:23  nigelhorne
319 319
  * Added -f flag use MaxThreads if --max-children not set
320 320
  */
321
-static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.39 2004/01/26 14:12:42 nigelhorne Exp $";
321
+static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.40 2004/01/28 15:55:59 nigelhorne Exp $";
322 322
 
323
-#define	CM_VERSION	"0.66h"
323
+#define	CM_VERSION	"0.66i"
324 324
 
325 325
 /*#define	CONFDIR	"/usr/local/etc"*/
326 326
 
... ...
@@ -1015,7 +1019,7 @@ pingServer(int serverNumber)
1015 1015
 		server.sin_family = AF_INET;
1016 1016
 		server.sin_port = htons(tcpSocket);
1017 1017
 		
1018
-		assert(serverIP != NULL);
1018
+		assert(serverIPs != NULL);
1019 1019
 		assert(serverIPs[0] != -1L);
1020 1020
 
1021 1021
 		server.sin_addr.s_addr = serverIPs[serverNumber];
... ...
@@ -1407,7 +1411,7 @@ clamfi_envfrom(SMFICTX *ctx, char **argv)
1407 1407
 			server.sin_family = AF_INET;
1408 1408
 			server.sin_port = htons(tcpSocket);
1409 1409
 
1410
-			assert(serverIP != NULL);
1410
+			assert(serverIPs != NULL);
1411 1411
 
1412 1412
 			freeServer = findServer();
1413 1413
 			if(freeServer < 0)
... ...
@@ -1483,7 +1487,7 @@ clamfi_envfrom(SMFICTX *ctx, char **argv)
1483 1483
 		reply.sin_family = AF_INET;
1484 1484
 		reply.sin_port = htons(port);
1485 1485
 
1486
-		assert(serverIP != NULL);
1486
+		assert(serverIPs != NULL);
1487 1487
 
1488 1488
 		reply.sin_addr.s_addr = serverIPs[freeServer];
1489 1489