dovecot-1.2: istream-seekable: Don't assert-crash when input buf...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Oct 27 06:22:38 EET 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/d3d0a2ed804a
changeset: 9450:d3d0a2ed804a
user: Timo Sirainen <tss at iki.fi>
date: Mon Oct 26 17:06:12 2009 -0400
description:
istream-seekable: Don't assert-crash when input buffer becomes full.
diffstat:
1 file changed, 2 insertions(+)
src/lib/istream-seekable.c | 2 ++
diffs (12 lines):
diff -r c7948ebd433e -r d3d0a2ed804a src/lib/istream-seekable.c
--- a/src/lib/istream-seekable.c Thu Oct 22 12:58:35 2009 -0400
+++ b/src/lib/istream-seekable.c Mon Oct 26 17:06:12 2009 -0400
@@ -252,6 +252,8 @@ static ssize_t i_stream_seekable_read(st
stream->istream.eof = sstream->fd_input->eof;
stream->istream.stream_errno =
sstream->fd_input->stream_errno;
+ } else {
+ ret = -2;
}
stream->buffer = i_stream_get_data(sstream->fd_input, &pos);
More information about the dovecot-cvs
mailing list