dovecot-2.2: istream-chain: Fixed crash caused by earlier io_add...

dovecot at dovecot.org dovecot at dovecot.org
Mon Aug 18 08:44:09 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/3d30ae287699
changeset: 17724:3d30ae287699
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Aug 18 10:43:59 2014 +0200
description:
istream-chain: Fixed crash caused by earlier io_add_stream() support change.

diffstat:

 src/lib/istream-chain.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 74e5657964d3 -r 3d30ae287699 src/lib/istream-chain.c
--- 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)


More information about the dovecot-cvs mailing list