[dovecot-cvs] dovecot/src/lib-mail message-decoder.c,1.1,1.2

tss at dovecot.org tss at dovecot.org
Wed Oct 25 00:45:16 UTC 2006


Update of /var/lib/cvs/dovecot/src/lib-mail
In directory talvi:/tmp/cvs-serv7120

Modified Files:
	message-decoder.c 
Log Message:
Don't crash with unknown charsets



Index: message-decoder.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-mail/message-decoder.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- message-decoder.c	17 Sep 2006 16:23:44 -0000	1.1
+++ message-decoder.c	24 Oct 2006 23:45:14 -0000	1.2
@@ -277,7 +277,7 @@
 		       ctx->encoding_size);
 	}
 
-	if (ctx->charset_utf8) {
+	if (ctx->charset_utf8 || ctx->charset_trans == NULL) {
 		output->data = data;
 		output->size = size;
 	} else {



More information about the dovecot-cvs mailing list