dovecot-1.1: Message parser: Fixed assert-crash if cached MIME s...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jun 20 11:40:55 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/ca97501642c5
changeset: 7699:ca97501642c5
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jun 20 11:40:52 2008 +0300
description:
Message parser: Fixed assert-crash if cached MIME structure was broken.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-mail/message-parser.c |    2 +-

diffs (12 lines):

diff -r 982a0863bb1f -r ca97501642c5 src/lib-mail/message-parser.c
--- a/src/lib-mail/message-parser.c	Fri Jun 20 11:19:16 2008 +0300
+++ b/src/lib-mail/message-parser.c	Fri Jun 20 11:40:52 2008 +0300
@@ -767,7 +767,7 @@ int message_parser_parse_next_block(stru
 	if (ret < 0 && ctx->part != NULL) {
 		/* Successful EOF or unexpected failure */
 		i_assert(ctx->input->eof || ctx->input->closed ||
-			 ctx->input->stream_errno != 0);
+			 ctx->input->stream_errno != 0 || ctx->broken);
 		while (ctx->part->parent != NULL) {
 			message_size_add(&ctx->part->parent->body_size,
 					 &ctx->part->body_size);


More information about the dovecot-cvs mailing list