aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-09-07 12:10:07 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-09-07 12:10:07 +0000
commit9963b19f69d69204ad1c3578d1276601b4433422 (patch)
tree2a6e345b762e7a773457abc4ccc7107c1945b0fa /src
parentd0afc3984105a1816d7b1f578e42c241aa256ed4 (diff)
downloadnginx-9963b19f69d69204ad1c3578d1276601b4433422.tar.gz
nginx-9963b19f69d69204ad1c3578d1276601b4433422.zip
do not pass incoming buf chain twice if data are ready,
the bug was introduced in r3072
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_copy_filter_module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_copy_filter_module.c b/src/http/ngx_http_copy_filter_module.c
index 713f44023..6be05a6a7 100644
--- a/src/http/ngx_http_copy_filter_module.c
+++ b/src/http/ngx_http_copy_filter_module.c
@@ -174,6 +174,7 @@ ngx_http_copy_filter(ngx_http_request_t *r, ngx_chain_t *in)
n = ngx_file_aio_read(file, &e->aio_preload, 1, offset, r->pool);
if (n > 0) {
+ in = NULL;
continue;
}