Mercurial > dovecot > core-2.2
changeset 20234:445531b78cb1
lib: istream's max_buffer_size=0 means 0, not unlimited.
Make sure we don't grow the buffer size then.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Wed, 04 May 2016 18:24:03 +0300 |
parents | 4309b9bad6d9 |
children | 2d4df68989ba |
files | src/lib/istream.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/istream.c Wed Jun 01 13:30:22 2016 +0300 +++ b/src/lib/istream.c Wed May 04 18:24:03 2016 +0300 @@ -622,8 +622,7 @@ if (stream->skip > 0) { /* remove the unused bytes from beginning of buffer */ i_stream_compress(stream); - } else if (stream->max_buffer_size == 0 || - stream->buffer_size < stream->max_buffer_size) { + } else if (stream->buffer_size < stream->max_buffer_size) { /* buffer is full - grow it */ i_stream_grow_buffer(stream, I_STREAM_MIN_SIZE); }