fix segfault

This commit is contained in:
Igor Sysoev 2008-12-17 16:07:58 +00:00
parent c4d029f7d6
commit 5be2e142f5

View file

@ -2488,7 +2488,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();