dovecot-1.0: Assert-crashfix.
dovecot at dovecot.org
dovecot at dovecot.org
Sat Jan 19 08:29:09 EET 2008
details: http://hg.dovecot.org/dovecot-1.0/rev/05b7ea05c426
changeset: 5514:05b7ea05c426
user: Timo Sirainen <tss at iki.fi>
date: Sat Jan 19 08:29:04 2008 +0200
description:
Assert-crashfix.
diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
src/plugins/zlib/istream-zlib.c | 6 ++----
diffs (16 lines):
diff -r 141615ec9411 -r 05b7ea05c426 src/plugins/zlib/istream-zlib.c
--- a/src/plugins/zlib/istream-zlib.c Sat Jan 19 08:05:34 2008 +0200
+++ b/src/plugins/zlib/istream-zlib.c Sat Jan 19 08:29:04 2008 +0200
@@ -99,10 +99,8 @@ static ssize_t _read(struct _istream *st
/* don't try to keep anything cached if we don't
have a seek mark. */
i_stream_compress(stream);
- }
-
- if (zstream->max_buffer_size == 0 ||
- stream->buffer_size < zstream->max_buffer_size) {
+ } else if (zstream->max_buffer_size == 0 ||
+ stream->buffer_size < zstream->max_buffer_size) {
/* buffer is full - grow it */
i_stream_grow_buffer(stream, I_STREAM_MIN_SIZE);
}
More information about the dovecot-cvs
mailing list