Mercurial > dovecot > core-2.2
changeset 20233:4309b9bad6d9
lib: Fix to previous istream-chain max_buffer_size handling
We were casting the wrong stream.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Wed, 01 Jun 2016 13:30:22 +0300 |
parents | 2ae2e3beaa56 |
children | 445531b78cb1 |
files | src/lib/istream-chain.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/istream-chain.c Tue May 31 22:33:32 2016 +0300 +++ b/src/lib/istream-chain.c Wed Jun 01 13:30:22 2016 +0300 @@ -46,7 +46,7 @@ i_stream_ref(stream); if (chain->head == NULL && stream != NULL) { - struct chain_istream *cstream = (struct chain_istream *)stream; + struct chain_istream *cstream = (struct chain_istream *)chain->stream; if (cstream->have_explicit_max_buffer_size) { i_stream_set_max_buffer_size(stream,