summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-01-26 15:17:50 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-01-26 15:17:50 +0000
commit27947f38ef109b38f0c5530582536546cb074a8d (patch)
tree9e20a0ca623f59b5d3ba1dca52303ac6e8a5fe98
parentccbe3f540e7c0e9fbd3644cd443bda620ed65358 (diff)
downloadnginx-27947f38ef109b38f0c5530582536546cb074a8d.tar.gz
r2414 merge:
fix segfault
-rw-r--r--src/http/ngx_http_upstream.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 3f77c03c4..bb235db8a 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -2345,7 +2345,9 @@ ngx_http_upstream_finalize_request(ngx_http_request_t *r,
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"finalize http upstream request: %i", rc);
- *u->cleanup = NULL;
+ if (u->cleanup) {
+ *u->cleanup = NULL;
+ }
if (u->state && u->state->response_sec) {
tp = ngx_timeofday();