changeset 12384:71e13b4a44d4

istream-concat: Fixed error handling when one of the stream read()s failed.
author Timo Sirainen <tss@iki.fi>
date Thu, 04 Nov 2010 16:25:18 +0000
parents e57054f88e66
children 455bea720c13
files src/lib/istream-concat.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;