dovecot-2.2: lib-mail: Fixed crash in message-decoder with unkno...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jan 14 23:23:31 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/38e807433e2f
changeset: 18152:38e807433e2f
user: Timo Sirainen <tss at iki.fi>
date: Thu Jan 15 01:10:11 2015 +0200
description:
lib-mail: Fixed crash in message-decoder with unknown charsets.
Caused by earlier changes.
diffstat:
src/lib-mail/message-decoder.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r e49a2e800650 -r 38e807433e2f src/lib-mail/message-decoder.c
--- a/src/lib-mail/message-decoder.c Thu Jan 15 01:08:00 2015 +0200
+++ b/src/lib-mail/message-decoder.c Thu Jan 15 01:10:11 2015 +0200
@@ -254,7 +254,7 @@
ctx->content_charset : "UTF-8");
if (charset_to_utf8_begin(ctx->charset_trans_charset, ctx->normalizer,
&ctx->charset_trans) < 0)
- ctx->charset_trans = NULL;
+ ctx->charset_trans = charset_utf8_to_utf8_begin(ctx->normalizer);
}
static bool message_decode_body(struct message_decoder_context *ctx,
More information about the dovecot-cvs
mailing list