# HG changeset patch # User Igor Sysoev # Date 1229530078 0 # Node ID 89ac47d91fc15b05654facd8bf1720556dcc612e # Parent 086c20fe2e972eff3397d48c2bca6573e07b9360 fix segfault diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2488,7 +2488,9 @@ ngx_http_upstream_finalize_request(ngx_h 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();