dovecot: Assert-crashfix.

dovecot at dovecot.org dovecot at dovecot.org
Sat Jan 19 08:29:13 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/e33119f2dfdc
changeset: 7168:e33119f2dfdc
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jan 19 08:29:05 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 93b1d16dc720 -r e33119f2dfdc src/plugins/zlib/istream-zlib.c
--- a/src/plugins/zlib/istream-zlib.c	Sat Jan 19 08:07:11 2008 +0200
+++ b/src/plugins/zlib/istream-zlib.c	Sat Jan 19 08:29:05 2008 +0200
@@ -54,10 +54,8 @@ static ssize_t i_stream_zlib_read(struct
 			/* don't try to keep anything cached if we don't
 			   have a seek mark. */
 			i_stream_compress(stream);
-		}
-
-		if (stream->max_buffer_size == 0 ||
-		    stream->buffer_size < stream->max_buffer_size) {
+		} else if (stream->max_buffer_size == 0 ||
+			   stream->buffer_size < stream->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