changeset 21446:d6ca4c4c7202

lib-storage: Filling vsize to index on read used wrong size
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 26 Jan 2017 19:51:34 +0200
parents be855523d700
children de3c25669608
files src/lib-storage/index/index-mail.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/index-mail.c	Thu Jan 26 09:42:26 2017 +0200
+++ b/src/lib-storage/index/index-mail.c	Thu Jan 26 19:51:34 2017 +0200
@@ -486,7 +486,7 @@
 	   add it to index. */
 	if (vsize != NULL && *vsize == 0 &&
 	    data->body_size.virtual_size < (uint32_t)-1) {
-		uint32_t vsize = data->body_size.virtual_size+1;
+		uint32_t vsize = data->virtual_size+1;
 		mail_index_update_ext(_mail->transaction->itrans, _mail->seq,
 				      mail->vsize_ext_id, &vsize, NULL);
 	}