Browse code

make the milter work in localsocket mode

git-svn: trunk@4785

aCaB authored on 2009/02/14 17:05:56
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Sat Feb 14 09:34:18 CET 2009 (acab)
2
+-----------------------------------
3
+ * clamav-milter/clamfi.c: Correctly scan in FILDES mode
4
+
1 5
 Fri Feb 13 19:21:24 EET 2009 (edwin)
2 6
 ------------------------------------
3 7
  * shared/output.c, unit_tests/check_clamd.c: mdprintf was also
... ...
@@ -80,6 +80,7 @@ static sfsistat sendchunk(struct CLAMFI *cf, unsigned char *bodyp, size_t len, S
80 80
 	len = maxfilesize - cf->totsz;
81 81
 
82 82
     if(cf->local) {
83
+	cf->bufsz += len;
83 84
 	while(len) {
84 85
 	    int n = write(cf->alt, bodyp, len);
85 86