]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
sendfile bugfix
authorTimo Sirainen <tss@iki.fi>
Wed, 19 Feb 2003 21:31:02 +0000 (23:31 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 19 Feb 2003 21:31:02 +0000 (23:31 +0200)
--HG--
branch : HEAD

src/lib/ostream-file.c

index 08f322dd60247c1188c117b46e6fc8ea899b3992..4fb00b178c9599118d9a74f21c91b5b5d6e8b499 100644 (file)
@@ -570,7 +570,7 @@ static off_t io_stream_sendfile(struct _ostream *outstream,
                outstream->ostream.offset += ret;
        } while ((uoff_t)ret != send_size);
 
-       i_stream_seek(instream, instream->start_offset + v_offset);
+       i_stream_seek(instream, v_offset);
        return ret < 0 ? -1 : (off_t)(instream->v_offset - start_offset);
 }