Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8210:1ea7d60cf39a HEAD
istream: Fix to previous error handling changes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 22 Sep 2008 22:25:25 +0300 |
parents | 329d8757e5c2 |
children | fd4091d53627 |
files | src/lib/istream.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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 */