Browse code

VBS.Redlof-A was not being detected under Windows

git-svn: trunk@3363

Nigel Horne authored on 2007/11/07 23:05:23
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Nov  7 13:06:54 GMT 2007 (njh)
2
+----------------------------------
3
+  * libclamav/blob.c:	VBS.Redlof-A was not being detected under Windows
4
+
1 5
 Tue Nov  6 17:49:03 GMT 2007 (njh)
2 6
 ----------------------------------
3 7
   * libclamav/vba_extract.c:	Added sanity check to get_unicode_name(),
... ...
@@ -150,6 +150,9 @@ blobGetFilename(const blob *b)
150 150
 	return b->name;
151 151
 }
152 152
 
153
+/*
154
+ * Returns <0 for failure
155
+ */
153 156
 int
154 157
 blobAddData(blob *b, const unsigned char *data, size_t len)
155 158
 {
... ...
@@ -678,8 +681,11 @@ fileblobScan(const fileblob *fb)
678 678
 		return CL_VIRUS;
679 679
 	}
680 680
 	cli_dbgmsg("%s is clean\n", fb->fullname);
681
-#endif	/*C_WINDOWS*/
682 681
 	return CL_BREAK;
682
+#else	/*C_WINDOWS*/
683
+	/* Ensure that the file is saved and scanned */
684
+	return CL_CLEAN;	/* there is no CL_UNKNOWN :-( */
685
+#endif	/*C_WINDOWS*/
683 686
 }
684 687
 
685 688
 /*