dovecot-2.2: lib: If istream-seekable's parent stream returns er...

dovecot at dovecot.org dovecot at dovecot.org
Sun Feb 15 08:11:19 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/20babbc0dc24
changeset: 18250:20babbc0dc24
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Feb 15 09:54:45 2015 +0200
description:
lib: If istream-seekable's parent stream returns error, make sure we set eof=TRUE

diffstat:

 src/lib/istream-seekable.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 9ecf16e01a87 -r 20babbc0dc24 src/lib/istream-seekable.c
--- a/src/lib/istream-seekable.c	Sat Feb 14 09:47:41 2015 +0200
+++ b/src/lib/istream-seekable.c	Sun Feb 15 09:54:45 2015 +0200
@@ -143,6 +143,7 @@
 				"read(%s) failed: %s",
 				i_stream_get_name(sstream->cur_input),
 				i_stream_get_error(sstream->cur_input));
+			sstream->istream.istream.eof = TRUE;
 			sstream->istream.istream.stream_errno =
 				sstream->cur_input->stream_errno;
 			return -1;


More information about the dovecot-cvs mailing list