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 4f4a419..9dd241b 100644 (file)
@@ -918,7 +918,8 @@ if (!malware_ok)
       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;