SOURCES: exim-clamav-timeout.patch (NEW) - testing

arekm arekm at pld-linux.org
Tue Jun 13 18:29:06 CEST 2006


Author: arekm                        Date: Tue Jun 13 16:29:06 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- testing

---- Files affected:
SOURCES:
   exim-clamav-timeout.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/exim-clamav-timeout.patch
diff -u /dev/null SOURCES/exim-clamav-timeout.patch:1.1
--- /dev/null	Tue Jun 13 18:29:06 2006
+++ SOURCES/exim-clamav-timeout.patch	Tue Jun 13 18:29:01 2006
@@ -0,0 +1,30 @@
+diff -urN exim-4.62.org/src/malware.c exim-4.62/src/malware.c
+--- exim-4.62.org/src/malware.c	2006-04-28 12:32:22.000000000 +0200
++++ exim-4.62/src/malware.c	2006-06-13 18:27:26.000000000 +0200
+@@ -1098,7 +1098,7 @@
+             return DEFER;
+           }
+           memset(av_buffer2, 0, sizeof(av_buffer2));
+-          bread = read(sock, av_buffer2, sizeof(av_buffer2));
++          bread = ip_read(sock, av_buffer2, sizeof(av_buffer2), 60);
+ 
+           if (bread < 0) {
+             log_write(0, LOG_MAIN|LOG_PANIC,
+@@ -1171,7 +1171,7 @@
+       return DEFER;
+     }
+ 
+-    result = read (clam_fd, clamav_fbuf, fsize);
++    result = ip_read (clam_fd, clamav_fbuf, fsize, 60);
+     if (result == -1) {
+       (void)close(sockData);
+       (void)close(clam_fd);
+@@ -1238,7 +1238,7 @@
+ 
+       /* Read the result */
+       memset(av_buffer, 0, sizeof(av_buffer));
+-      bread = read(sock, av_buffer, sizeof(av_buffer));
++      bread = ip_read(sock, av_buffer, sizeof(av_buffer), 60);
+       (void)close(sock);
+ 
+       if (!(bread  > 0)) {
================================================================


More information about the pld-cvs-commit mailing list