dovecot: We called parent stream's read() too often, causing ear...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Oct 27 18:07:09 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/f33be4f9ba4d
changeset: 6617:f33be4f9ba4d
user: Timo Sirainen <tss at iki.fi>
date: Sat Oct 27 18:07:03 2007 +0300
description:
We called parent stream's read() too often, causing early EOFs.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/istream-crlf.c | 2 +-
diffs (12 lines):
diff -r be366eda336e -r f33be4f9ba4d src/lib/istream-crlf.c
--- a/src/lib/istream-crlf.c Thu Oct 25 21:17:12 2007 +0300
+++ b/src/lib/istream-crlf.c Sat Oct 27 18:07:03 2007 +0300
@@ -37,7 +37,7 @@ static ssize_t i_stream_crlf_read(struct
ssize_t ret;
data = i_stream_get_data(cstream->input, &size);
- if (size <= stream->pos) {
+ if (size == 0) {
ret = i_stream_read(cstream->input);
if (ret <= 0 && (ret != -2 || stream->skip == 0)) {
stream->istream.stream_errno =
More information about the dovecot-cvs
mailing list