Mercurial > dovecot > core-2.2
changeset 15133:8cec3b4c43ca
pop3c: Fetching message size could have returned wrong value
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 14 Sep 2012 20:51:02 +0300 |
parents | 27d3289e1f5c |
children | eff1d11ce14b |
files | src/lib-storage/index/pop3c/pop3c-mail.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/pop3c/pop3c-mail.c Wed Sep 12 00:20:47 2012 +0300 +++ b/src/lib-storage/index/pop3c/pop3c-mail.c Fri Sep 14 20:51:02 2012 +0300 @@ -30,7 +30,7 @@ struct message_size hdr_size, body_size; struct istream *input; - if (mail->data.virtual_size != 0) { + if (mail->data.virtual_size != (uoff_t)-1) { /* virtual size is already known. it's the same as our (correct) physical size */ *size_r = mail->data.virtual_size;