]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Fix to previous istream-chain max_buffer_size handling
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 1 Jun 2016 10:30:22 +0000 (13:30 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 1 Jun 2016 10:30:22 +0000 (13:30 +0300)
We were casting the wrong stream.

src/lib/istream-chain.c

index 89c1bbc59cc3ccdfe70bb1346ecdb704e1840684..ddf0f566c82db5978478b43982eeee0b96bf337d 100644 (file)
@@ -46,7 +46,7 @@ i_stream_chain_append_internal(struct istream_chain *chain,
                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,