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_freebsd_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_freebsd_sendfile_chain.c')
-rw-r--r-- | src/os/unix/ngx_freebsd_sendfile_chain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/unix/ngx_freebsd_sendfile_chain.c b/src/os/unix/ngx_freebsd_sendfile_chain.c index f784b1f1d..d5e1831bc 100644 --- a/src/os/unix/ngx_freebsd_sendfile_chain.c +++ b/src/os/unix/ngx_freebsd_sendfile_chain.c @@ -73,7 +73,7 @@ ngx_chain_t *ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in) prev = NULL; iov = NULL; - 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; } @@ -123,7 +123,7 @@ ngx_chain_t *ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in) prev = NULL; iov = NULL; - for ( /* void */; cl; cl = cl->next) { + for ( /* void */; cl && trailer.nelts < IOV_MAX; cl = cl->next) { if (ngx_hunk_special(cl->hunk)) { continue; } |