]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
istream: Fix to previous error handling changes.
authorTimo Sirainen <tss@iki.fi>
Mon, 22 Sep 2008 19:25:25 +0000 (22:25 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 22 Sep 2008 19:25:25 +0000 (22:25 +0300)
--HG--
branch : HEAD

src/lib/istream.c

index 7c69fb97c3a04da9951c232bea3854c05fbc22fc..77214ddc05f96d4a138e5fba21271204da32bee5 100644 (file)
@@ -71,7 +71,7 @@ ssize_t i_stream_read(struct istream *stream)
        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 */