]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
i_stream_next_line(): Don't fail if stream doesn't have write buffer, we can handle it.
authorTimo Sirainen <tss@iki.fi>
Wed, 21 Sep 2011 12:51:00 +0000 (15:51 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 21 Sep 2011 12:51:00 +0000 (15:51 +0300)
src/lib/istream.c

index 8efcc55de2093f8d03b86ca997a4d960c950aeb6..7ff659b921b003ecf446571068dd36a4b99596e1 100644 (file)
@@ -349,12 +349,6 @@ char *i_stream_next_line(struct istream *stream)
                return NULL;
        }
 
-       if (unlikely(_stream->w_buffer == NULL)) {
-               i_error("i_stream_next_line(%s) called for unmodifiable stream",
-                       i_stream_get_name(stream));
-               return NULL;
-       }
-
        pos = memchr(_stream->buffer + _stream->skip, '\n',
                     _stream->pos - _stream->skip);
        if (pos != NULL) {