Browse code

Better check for boundaries with comments

git-svn: trunk@1312

Nigel Horne authored on 2005/02/06 18:21:55
Showing 1 changed files
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: mbox.c,v $
20
+ * Revision 1.216  2005/02/06 09:21:55  nigelhorne
21
+ * Better check for boundaries with comments
22
+ *
20 23
  * Revision 1.215  2005/02/03 21:07:33  nigelhorne
21 24
  * Faster handling of bounce messages
22 25
  *
... ...
@@ -633,7 +636,7 @@
633 633
  * Compilable under SCO; removed duplicate code with message.c
634 634
  *
635 635
  */
636
-static	char	const	rcsid[] = "$Id: mbox.c,v 1.215 2005/02/03 21:07:33 nigelhorne Exp $";
636
+static	char	const	rcsid[] = "$Id: mbox.c,v 1.216 2005/02/06 09:21:55 nigelhorne Exp $";
637 637
 
638 638
 #if HAVE_CONFIG_H
639 639
 #include "clamav-config.h"
... ...
@@ -3036,7 +3039,7 @@ boundaryStart(const char *line, const char *boundary)
3036 3036
 	else if(*ptr++ != '-')
3037 3037
 		rc = 0;
3038 3038
 	else
3039
-		rc = (strcasecmp(line, boundary) == 0);
3039
+		rc = (strcasecmp(ptr, boundary) == 0);
3040 3040
 
3041 3041
 	if(p)
3042 3042
 		free(p);