# HG changeset patch # User Timo Sirainen # Date 1297927735 -7200 # Node ID 7705bd04924c4bd5752cfc4c408b6a16f7437404 # Parent db7abf4a29e528f261a45157138e7868277ee345 istream-limit: Allow seeking past limit without assert-crashing. The next read() will simply return EOF. diff -r db7abf4a29e5 -r 7705bd04924c src/lib/istream-limit.c --- a/src/lib/istream-limit.c Thu Feb 17 09:01:38 2011 +0200 +++ b/src/lib/istream-limit.c Thu Feb 17 09:28:55 2011 +0200 @@ -74,10 +74,6 @@ static void i_stream_limit_seek(struct istream_private *stream, uoff_t v_offset, bool mark ATTR_UNUSED) { - struct limit_istream *lstream = (struct limit_istream *) stream; - - i_assert(v_offset <= lstream->v_size); - stream->istream.v_offset = v_offset; stream->skip = stream->pos = 0; }