Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9450:d3d0a2ed804a HEAD
istream-seekable: Don't assert-crash when input buffer becomes full.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 26 Oct 2009 17:06:12 -0400 |
parents | c7948ebd433e |
children | 9fff30644260 |
files | src/lib/istream-seekable.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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);