diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-02-18 15:45:21 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-02-18 15:45:21 +0000 |
commit | 8ae18a10d6c7c94fbb4fa04a64c6fa1e2a38fe16 (patch) | |
tree | b6141281a8b432f4ccfeb6f6f670a0e38b9e01b4 /src/os/unix/ngx_linux_sendfile_chain.c | |
parent | 22a7c50463654139e14b4645a1ac8e35feec9900 (diff) | |
download | nginx-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.c | 2 |
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; } |