Browse code

Catch lines just containing ':'

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

Nigel Horne authored on 2004/02/27 21:19:04
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Fri Feb 27 12:23:48 GMT 2004 (njh)
2
+----------------------------------
3
+  * libclamav:	Handle lines just containing ':', thanks to Stefan
4
+	Kaltenbrunner <mm-mailinglist@madness.at> and Trog
5
+
1 6
 Fri Feb 27 10:47:20 CET 2004 (tk)
2 7
 ---------------------------------
3 8
   * clamd: --debug: disable limit for a core size under Linux
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: mbox.c,v $
20
+ * Revision 1.48  2004/02/27 12:16:26  nigelhorne
21
+ * Catch lines just containing ':'
22
+ *
20 23
  * Revision 1.47  2004/02/23 10:13:08  nigelhorne
21 24
  * Handle spaces before : in headers
22 25
  *
... ...
@@ -132,7 +135,7 @@
132 132
  * Compilable under SCO; removed duplicate code with message.c
133 133
  *
134 134
  */
135
-static	char	const	rcsid[] = "$Id: mbox.c,v 1.47 2004/02/23 10:13:08 nigelhorne Exp $";
135
+static	char	const	rcsid[] = "$Id: mbox.c,v 1.48 2004/02/27 12:16:26 nigelhorne Exp $";
136 136
 
137 137
 #if HAVE_CONFIG_H
138 138
 #include "clamav-config.h"
... ...
@@ -482,7 +485,7 @@ parseEmailHeader(message *m, const char *line, const table_t *rfc821Table)
482 482
 
483 483
 	cmd = strtok_r(copy, ":", &strptr);
484 484
 
485
-	if(*cmd) {
485
+	if(cmd && *cmd) {
486 486
 		char *arg = strtok_r(NULL, "", &strptr);
487 487
 
488 488
 		if(arg)