Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6565:b39233d16d0f HEAD
Fix to handling buffer full conditions.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 20 Oct 2007 20:20:43 +0300 |
parents | c4fa8b1ee24a |
children | 1f98c63aaaa3 |
files | src/lib-mail/istream-header-filter.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-mail/istream-header-filter.c Sat Oct 20 19:25:35 2007 +0300 +++ b/src/lib-mail/istream-header-filter.c Sat Oct 20 20:20:43 2007 +0300 @@ -232,10 +232,8 @@ stream->buffer = i_stream_get_data(mstream->input, &pos); if (pos <= stream->pos) { - if ((ret = i_stream_read(mstream->input)) == -2) { - if (stream->skip == 0) - return -2; - } + if ((ret = i_stream_read(mstream->input)) == -2) + return -2; stream->istream.stream_errno = mstream->input->stream_errno; stream->istream.eof = mstream->input->eof; stream->buffer = i_stream_get_data(mstream->input, &pos);