aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_linux_sendfile_chain.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-02-18 15:45:21 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-02-18 15:45:21 +0000
commit8ae18a10d6c7c94fbb4fa04a64c6fa1e2a38fe16 (patch)
treeb6141281a8b432f4ccfeb6f6f670a0e38b9e01b4 /src/os/unix/ngx_linux_sendfile_chain.c
parent22a7c50463654139e14b4645a1ac8e35feec9900 (diff)
downloadnginx-8ae18a10d6c7c94fbb4fa04a64c6fa1e2a38fe16.tar.gz
nginx-8ae18a10d6c7c94fbb4fa04a64c6fa1e2a38fe16.zip
nginx-0.0.2-2004-02-18-18:45:21 import
Diffstat (limited to 'src/os/unix/ngx_linux_sendfile_chain.c')
-rw-r--r--src/os/unix/ngx_linux_sendfile_chain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/unix/ngx_linux_sendfile_chain.c b/src/os/unix/ngx_linux_sendfile_chain.c
index 39c2e831d..4fa8f835c 100644
--- a/src/os/unix/ngx_linux_sendfile_chain.c
+++ b/src/os/unix/ngx_linux_sendfile_chain.c
@@ -52,7 +52,7 @@ ngx_chain_t *ngx_linux_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in)
/* create the iovec and coalesce the neighbouring hunks */
- for (cl = in; cl; cl = cl->next) {
+ for (cl = in; cl && header.nelts < IOV_MAX; cl = cl->next) {
if (ngx_hunk_special(cl->hunk)) {
continue;
}