dovecot-2.0: istream-concat: Fixed error handling when one of th...

dovecot at dovecot.org dovecot at dovecot.org
Thu Nov 4 18:25:43 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/71e13b4a44d4
changeset: 12384:71e13b4a44d4
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Nov 04 16:25:18 2010 +0000
description:
istream-concat: Fixed error handling when one of the stream read()s failed.

diffstat:

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

diffs (12 lines):

diff -r e57054f88e66 -r 71e13b4a44d4 src/lib/istream-concat.c
--- a/src/lib/istream-concat.c	Thu Nov 04 15:47:37 2010 +0000
+++ b/src/lib/istream-concat.c	Thu Nov 04 16:25:18 2010 +0000
@@ -126,7 +126,7 @@
 		if (ret == -2 || ret == 0)
 			return ret;
 
-		if (ret == -1 && stream->istream.stream_errno != 0) {
+		if (ret == -1 && cstream->cur_input->stream_errno != 0) {
 			stream->istream.stream_errno =
 				cstream->cur_input->stream_errno;
 			return -1;


More information about the dovecot-cvs mailing list