From: Timo Sirainen Date: Fri, 1 Oct 2010 16:06:27 +0000 (+0100) Subject: zlib: Fixed istream-zlib when using seeking with mark=TRUE (i.e. mbox) X-Git-Tag: 2.0.5~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1546b3a75cf59c2b5743dd858555770df3e01a45;p=thirdparty%2Fdovecot%2Fcore.git zlib: Fixed istream-zlib when using seeking with mark=TRUE (i.e. mbox) --- diff --git a/src/plugins/zlib/istream-zlib.c b/src/plugins/zlib/istream-zlib.c index 79c6ac8e7b..84a8a46ebd 100644 --- a/src/plugins/zlib/istream-zlib.c +++ b/src/plugins/zlib/istream-zlib.c @@ -403,10 +403,8 @@ i_stream_zlib_seek(struct istream_private *stream, uoff_t v_offset, bool mark) } } - if (mark) { - i_stream_compress(stream); + if (mark) zstream->marked = TRUE; - } } static const struct stat *