dovecot-1.1: Assert fix
dovecot at dovecot.org
dovecot at dovecot.org
Thu Feb 21 13:41:53 EET 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/1e5deb36a79f
changeset: 7272:1e5deb36a79f
user: Timo Sirainen <tss at iki.fi>
date: Thu Feb 21 13:43:17 2008 +0200
description:
Assert fix
diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
src/lib-mail/message-parser.c | 4 +++-
diffs (14 lines):
diff -r 4ac4e9ba1124 -r 1e5deb36a79f src/lib-mail/message-parser.c
--- a/src/lib-mail/message-parser.c Thu Feb 21 13:06:50 2008 +0200
+++ b/src/lib-mail/message-parser.c Thu Feb 21 13:43:17 2008 +0200
@@ -761,7 +761,9 @@ int message_parser_parse_next_block(stru
block_r->part = ctx->part;
if (ret < 0 && ctx->part != NULL) {
- i_assert(ctx->input->eof);
+ /* Successful EOF or unexpected failure */
+ i_assert(ctx->input->eof || ctx->input->closed ||
+ ctx->input->stream_errno != 0);
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