# HG changeset patch # User Timo Sirainen # Date 1192900843 -10800 # Node ID b39233d16d0f67b49fb73bf56c67b450497975e3 # Parent c4fa8b1ee24a2d78c2a3c7b061d9f90d315b1753 Fix to handling buffer full conditions. diff -r c4fa8b1ee24a -r b39233d16d0f src/lib-mail/istream-header-filter.c --- 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);