Browse code

Some Worm.Mydoom.Gen-unp were getting through

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

Nigel Horne authored on 2005/01/28 05:23:49
Showing 2 changed files
... ...
@@ -1,6 +1,10 @@
1
+Thu Jan 27 20:22:50 GMT 2005 (njh)
2
+----------------------------------
3
+  * libclamav/message.c:	Some Worm.Mydoom.Gen-unp were not caught
4
+
1 5
 Thu Jan 27 14:11:13 GMT 2005 (njh)
2 6
 ----------------------------------
3
-* libclamav/mbox.c:	Scan sendmail queue df* files
7
+  * libclamav/mbox.c:	Scan sendmail queue df* files
4 8
 
5 9
 Thu Jan 27 10:55:35 GMT 2005 (njh)
6 10
 ----------------------------------
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: message.c,v $
20
+ * Revision 1.139  2005/01/27 20:20:58  nigelhorne
21
+ * Some Worm.Mydoom.Gen-unp were getting through
22
+ *
20 23
  * Revision 1.138  2005/01/24 13:54:22  nigelhorne
21 24
  * Some Exploit.IE.CrashSOS were getting through
22 25
  *
... ...
@@ -411,7 +414,7 @@
411 411
  * uuencodebegin() no longer static
412 412
  *
413 413
  */
414
-static	char	const	rcsid[] = "$Id: message.c,v 1.138 2005/01/24 13:54:22 nigelhorne Exp $";
414
+static	char	const	rcsid[] = "$Id: message.c,v 1.139 2005/01/27 20:20:58 nigelhorne Exp $";
415 415
 
416 416
 #if HAVE_CONFIG_H
417 417
 #include "clamav-config.h"
... ...
@@ -2506,8 +2509,7 @@ decode(message *m, const char *in, unsigned char *out, unsigned char (*decoder)(
2506 2506
 				nbytes = 2;
2507 2507
 				m->base64chars--;
2508 2508
 				b3 = cb3;
2509
-				if(b3)
2510
-					nbytes = 3;
2509
+				nbytes = 3;
2511 2510
 			} else if(b2)
2512 2511
 				nbytes = 2;
2513 2512
 		}