From: Timo Sirainen Date: Fri, 14 Sep 2012 17:51:02 +0000 (+0300) Subject: pop3c: Fetching message size could have returned wrong value X-Git-Tag: 2.1.10~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcb5f4cd72b413a5356a8db55e679403c6a1adb5;p=thirdparty%2Fdovecot%2Fcore.git pop3c: Fetching message size could have returned wrong value --- diff --git a/src/lib-storage/index/pop3c/pop3c-mail.c b/src/lib-storage/index/pop3c/pop3c-mail.c index 2d0b186e98..d76abcc3a6 100644 --- a/src/lib-storage/index/pop3c/pop3c-mail.c +++ b/src/lib-storage/index/pop3c/pop3c-mail.c @@ -30,7 +30,7 @@ static int pop3c_mail_get_physical_size(struct mail *_mail, uoff_t *size_r) 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;