fix segfault

This commit is contained in:
Igor Sysoev 2008-12-17 16:07:58 +00:00
parent 52b815e452
commit cf6c582b9a

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, ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"finalize http upstream request: %i", rc); "finalize http upstream request: %i", rc);
*u->cleanup = NULL; if (u->cleanup) {
*u->cleanup = NULL;
}
if (u->state && u->state->response_sec) { if (u->state && u->state->response_sec) {
tp = ngx_timeofday(); tp = ngx_timeofday();