dovecot-2.0: zlib: Fixed seeking in zlib/bzlib input stream.

dovecot at dovecot.org dovecot at dovecot.org
Mon Mar 8 19:11:18 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/d05561b0c257
changeset: 10864:d05561b0c257
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 08 19:11:12 2010 +0200
description:
zlib: Fixed seeking in zlib/bzlib input stream.

diffstat:

 src/plugins/zlib/istream-bzlib.c |  1 +
 src/plugins/zlib/istream-zlib.c  |  1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diffs (22 lines):

diff -r 2795a5c52d92 -r d05561b0c257 src/plugins/zlib/istream-bzlib.c
--- 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;
diff -r 2795a5c52d92 -r d05561b0c257 src/plugins/zlib/istream-zlib.c
--- 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;


More information about the dovecot-cvs mailing list