Malware: Fix potential spin-on-read-error with kavdaemon
authorRichard Clayton <richard@highwayman.com>
Sun, 20 Dec 2015 19:12:21 +0000 (19:12 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Sun, 20 Dec 2015 19:12:21 +0000 (19:12 +0000)
src/src/malware.c

index 4f4a41952ece8efc51f70df81e80aeb65c821b57..9dd241b8c84f0d62cf9c9aff7be8992ec3dbb10e 100644 (file)
@@ -918,7 +918,8 @@ if (!malware_ok)
       uschar tmpbuf[1024];
       uschar * scanrequest;
       int kav_rc;
       uschar tmpbuf[1024];
       uschar * scanrequest;
       int kav_rc;
-      unsigned long kav_reportlen, bread;
+      unsigned long kav_reportlen;
+      int bread;
       const pcre *kav_re;
       uschar *p;
 
       const pcre *kav_re;
       uschar *p;