dovecot-2.2: istream-attachment-extractor didn't return hash str...

dovecot at dovecot.org dovecot at dovecot.org
Wed Aug 22 11:43:26 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/ab486673638c
changeset: 14945:ab486673638c
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Aug 22 11:43:15 2012 +0300
description:
istream-attachment-extractor didn't return hash strings correctly.

diffstat:

 src/lib-mail/istream-attachment-extractor.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 9cefc52d688f -r ab486673638c src/lib-mail/istream-attachment-extractor.c
--- a/src/lib-mail/istream-attachment-extractor.c	Wed Aug 22 10:18:44 2012 +0300
+++ b/src/lib-mail/istream-attachment-extractor.c	Wed Aug 22 11:43:15 2012 +0300
@@ -469,6 +469,7 @@
 		info.base64_blocks_per_line = part->base64_line_blocks;
 		info.base64_have_crlf = part->base64_have_crlf;
 		/* base64-decoder updated the hash, use it */
+		str_truncate(digest_str, 0);
 		hash_format_write(astream->set.hash_format, digest_str);
 		info.hash = str_c(digest_str);
 	} else {


More information about the dovecot-cvs mailing list