From 1469b5145142ba2096e7c3467e867e8bf67cab25 Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Mon, 26 Nov 2012 21:19:57 +0000 Subject: 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. --- src/os/unix/ngx_files.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/os/unix/ngx_files.c') diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c index 65d2320b2..4fdf884fc 100644 --- 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, ngx_chain_t *cl, off_t offset, file->sys_offset += n; file->offset += n; + offset += n; total += n; } while (cl); -- cgit v1.2.3