]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
reset stream_errno
authorTimo Sirainen <tss@iki.fi>
Wed, 29 Oct 2003 12:58:35 +0000 (14:58 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 29 Oct 2003 12:58:35 +0000 (14:58 +0200)
--HG--
branch : HEAD

src/lib/istream.c

index 3959fcfb299abea0d348cf05bef61d750cc25826..eb3c1a38f6056af2b354c80b0b3b3d80b1c984f1 100644 (file)
@@ -154,8 +154,10 @@ char *i_stream_next_line(struct istream *stream)
 
         i_assert(stream != NULL);
 
-       if (_stream->skip >= _stream->pos)
+       if (_stream->skip >= _stream->pos) {
+               stream->stream_errno = 0;
                return NULL;
+       }
 
        if (_stream->w_buffer == NULL) {
                i_error("i_stream_next_line() called for unmodifyable stream");