Mercurial > dovecot > original-hg > dovecot-2.2
changeset 17724:3d30ae287699
istream-chain: Fixed crash caused by earlier io_add_stream() support change.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 18 Aug 2014 10:43:59 +0200 |
parents | 74e5657964d3 |
children | bd381e882485 |
files | src/lib/istream-chain.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/istream-chain.c Fri Aug 15 16:00:07 2014 +0300 +++ b/src/lib/istream-chain.c Mon Aug 18 10:43:59 2014 +0200 @@ -56,7 +56,8 @@ DLLIST2_APPEND(&chain->head, &chain->tail, link); /* if io_add_istream() has been added to this chain stream, notify the callback that we have more data available. */ - i_stream_set_input_pending(stream, TRUE); + if (stream != NULL) + i_stream_set_input_pending(stream, TRUE); } void i_stream_chain_append(struct istream_chain *chain, struct istream *stream)