From 8ae18a10d6c7c94fbb4fa04a64c6fa1e2a38fe16 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 18 Feb 2004 15:45:21 +0000 Subject: nginx-0.0.2-2004-02-18-18:45:21 import --- src/os/unix/ngx_linux_sendfile_chain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/os/unix/ngx_linux_sendfile_chain.c') 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; } -- cgit v1.2.3