[dovecot-cvs] dovecot/src/lib istream.c,1.21,1.22
cras at dovecot.org
cras at dovecot.org
Sun Aug 22 13:48:48 EEST 2004
Update of /home/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv4536
Modified Files:
istream.c
Log Message:
i_stream_read_data(): don't loop if read() returns 0.
Index: istream.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/istream.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- istream.c 22 Aug 2004 04:00:06 -0000 1.21
+++ istream.c 22 Aug 2004 10:48:46 -0000 1.22
@@ -181,7 +181,7 @@
/* we need more data */
ret = i_stream_read(stream);
- } while (ret >= 0);
+ } while (ret > 0);
*data = i_stream_get_data(stream, size);
return ret == -2 ? -2 :
More information about the dovecot-cvs
mailing list