Browse code

ignore short signatures

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@708 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2004/07/31 01:18:13
Showing 3 changed files
... ...
@@ -1,3 +1,7 @@
1
+Fri Jul 30 18:13:26 CEST 2004 (tk)
2
+----------------------------------
3
+  * libclamav: matcher-bm: really ignore short signatures
4
+
1 5
 Fri Jul 30 15:35:19 BST 2004 (njh)
2 6
 ----------------------------------
3 7
   * clamav-milter:	 Handle change in the clamd message when
... ...
@@ -181,7 +181,7 @@ There is no support for IPv6.
181 181
 clamav\-milter \-ol local:/var/run/clamav/clmilter.sock
182 182
 .SH "AUTHOR"
183 183
 .LP
184
-clamav\-milter was written by Nigel Horne <njh@bandsman.co.uk>, the manual page was created by Tomasz Kojm <zolw@konarski.edu.pl>.
184
+Nigel Horne <njh@clamav.net>
185 185
 .SH "SEE ALSO"
186 186
 .LP
187 187
 clamd(8), clamscan(1), freshclam(1), sigtool(1), clamav.conf(5), hosts_access(5)
... ...
@@ -38,6 +38,7 @@ int cli_bm_addpatt(struct cl_node *root, struct cli_bm_patt *pattern)
38 38
     if(pattern->length < BM_MIN_LENGTH) {
39 39
 	cli_dbgmsg("Ignoring signature for %s (too short)\n", pattern->virname);
40 40
 	/* return CL_EPATSHORT; */
41
+	return 0;
41 42
     }
42 43
 
43 44
     for(i = BM_MIN_LENGTH - BM_BLOCK_SIZE; i >= 0; i--) {