Mercurial > dovecot > core-2.2
diff src/lib-mail/message-decoder.c @ 18152:38e807433e2f
lib-mail: Fixed crash in message-decoder with unknown charsets.
Caused by earlier changes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 15 Jan 2015 01:10:11 +0200 |
parents | e49a2e800650 |
children | 7250ccf9ab4c |
line wrap: on
line diff
--- 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,