# HG changeset patch # User Maxim Dounin # Date 1353964797 0 # Node ID 64ffc28850bb603cb35908a6b7866145ec7e470f # Parent 3b6594a2b79ff98da9d55515451d019e5ba7eb54 Core: fixed ngx_write_chain_to_file() with IOV_MAX reached. Catched by dav_chunked.t on Solaris. In released versions this might potentially result in corruption of complex protocol responses if they were written to disk and there were more distinct buffers than IOV_MAX in a single write. diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c --- a/src/os/unix/ngx_files.c +++ b/src/os/unix/ngx_files.c @@ -246,6 +246,7 @@ ngx_write_chain_to_file(ngx_file_t *file file->sys_offset += n; file->offset += n; + offset += n; total += n; } while (cl);