Mercurial > dovecot > core-2.2
changeset 10864:d05561b0c257 HEAD
zlib: Fixed seeking in zlib/bzlib input stream.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 08 Mar 2010 19:11:12 +0200 |
parents | 2795a5c52d92 |
children | 42e5d937555e |
files | src/plugins/zlib/istream-bzlib.c src/plugins/zlib/istream-zlib.c |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/zlib/istream-bzlib.c Mon Mar 08 19:09:00 2010 +0200 +++ b/src/plugins/zlib/istream-bzlib.c Mon Mar 08 19:11:12 2010 +0200 @@ -195,6 +195,7 @@ zstream->zs.next_in = NULL; zstream->zs.avail_in = 0; + stream->parent_expected_offset = stream->parent_start_offset; stream->skip = stream->pos = 0; stream->istream.v_offset = 0; zstream->high_pos = 0;
--- a/src/plugins/zlib/istream-zlib.c Mon Mar 08 19:09:00 2010 +0200 +++ b/src/plugins/zlib/istream-zlib.c Mon Mar 08 19:11:12 2010 +0200 @@ -341,6 +341,7 @@ zstream->zs.next_in = NULL; zstream->zs.avail_in = 0; + stream->parent_expected_offset = stream->parent_start_offset; stream->skip = stream->pos = 0; stream->istream.v_offset = 0; zstream->high_pos = 0;