[dovecot-cvs] dovecot/src/lib-mail message-parser.c,1.57,1.58
cras at dovecot.org
cras at dovecot.org
Sun Aug 22 12:12:12 EEST 2004
Update of /home/cvs/dovecot/src/lib-mail
In directory talvi:/tmp/cvs-serv1973
Modified Files:
message-parser.c
Log Message:
If headers don't end with linefeed and there's no ':' in the line,
don't hide the data.
Index: message-parser.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-mail/message-parser.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- message-parser.c 22 Aug 2004 03:19:58 -0000 1.57
+++ message-parser.c 22 Aug 2004 09:12:09 -0000 1.58
@@ -759,7 +759,7 @@
/* a) line is larger than input buffer
b) header ended unexpectedly */
- if (colon_pos == UINT_MAX) {
+ if (colon_pos == UINT_MAX && ret == -2) {
/* header name is huge. just skip it. */
message_skip_line(ctx->input, ctx->hdr_size,
TRUE, &ctx->has_nuls);
More information about the dovecot-cvs
mailing list