dovecot-1.2: Message parser: Fixed assert-crash if cached MIME s...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Jun 21 16:40:52 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/e06d4049d282
changeset: 7938:e06d4049d282
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 fd32947addb4 -r e06d4049d282 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