[dovecot-cvs] dovecot/src/lib-mail message-parser.c,1.39,1.40

cras at procontrol.fi cras at procontrol.fi
Fri May 23 03:04:43 EEST 2003


Update of /home/cvs/dovecot/src/lib-mail
In directory danu:/tmp/cvs-serv29863

Modified Files:
	message-parser.c 
Log Message:
Reset line->name and full_value* fields at end of headers. Envelope parser
was treating the EOH as duplicate of last header.



Index: message-parser.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-mail/message-parser.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- message-parser.c	3 May 2003 17:28:20 -0000	1.39
+++ message-parser.c	22 May 2003 23:04:41 -0000	1.40
@@ -680,7 +680,8 @@
 	if (size == 0 || (size == 1 && msg[0] == '\r')) {
 		/* end of headers */
 		line->eoh = TRUE;
-		line->name_len = line->value_len = 0;
+		line->name_len = line->value_len = line->full_value_len = 0;
+		line->name = ""; line->value = line->full_value = NULL;
 	} else if (line->continued) {
 		line->value = msg;
 		line->value_len = size;



More information about the dovecot-cvs mailing list