dovecot-1.2: istream: Fix to previous error handling changes.

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 22 22:31:39 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/1ea7d60cf39a
changeset: 8210:1ea7d60cf39a
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 22 22:25:25 2008 +0300
description:
istream: Fix to previous error handling changes.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/istream.c |    2 +-

diffs (12 lines):

diff -r 329d8757e5c2 -r 1ea7d60cf39a src/lib/istream.c
--- a/src/lib/istream.c	Mon Sep 22 21:55:07 2008 +0300
+++ b/src/lib/istream.c	Mon Sep 22 22:25:25 2008 +0300
@@ -71,7 +71,7 @@ ssize_t i_stream_read(struct istream *st
 	stream->stream_errno = 0;
 
 	ret = _stream->read(_stream);
-	if (ret < 0) {
+	if (ret == -1) {
 		if (stream->stream_errno != 0) {
 			/* error handling should be easier if we now just
 			   assume the stream is now at EOF */


More information about the dovecot-cvs mailing list