summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_upstream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 71b9b89de..ad3f0fbf5 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -1500,6 +1500,8 @@ ngx_http_upstream_process_non_buffered_body(ngx_event_t *ev)
ngx_http_core_loc_conf_t *clcf;
c = ev->data;
+ r = c->data;
+ u = r->upstream;
if (ev->write) {
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0,
@@ -1525,8 +1527,6 @@ ngx_http_upstream_process_non_buffered_body(ngx_event_t *ev)
return;
}
- r = c->data;
- u = r->upstream;
client = r->connection;
b = &u->buffer;