Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.c @ 2413:89ac47d91fc1
fix segfault
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 17 Dec 2008 16:07:58 +0000 |
parents | cd6a1abe11a7 |
children | 7af1e5fe102c |
comparison
equal
deleted
inserted
replaced
2412:086c20fe2e97 | 2413:89ac47d91fc1 |
---|---|
2486 ngx_time_t *tp; | 2486 ngx_time_t *tp; |
2487 | 2487 |
2488 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 2488 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
2489 "finalize http upstream request: %i", rc); | 2489 "finalize http upstream request: %i", rc); |
2490 | 2490 |
2491 *u->cleanup = NULL; | 2491 if (u->cleanup) { |
2492 *u->cleanup = NULL; | |
2493 } | |
2492 | 2494 |
2493 if (u->state && u->state->response_sec) { | 2495 if (u->state && u->state->response_sec) { |
2494 tp = ngx_timeofday(); | 2496 tp = ngx_timeofday(); |
2495 u->state->response_sec = tp->sec - u->state->response_sec; | 2497 u->state->response_sec = tp->sec - u->state->response_sec; |
2496 u->state->response_msec = tp->msec - u->state->response_msec; | 2498 u->state->response_msec = tp->msec - u->state->response_msec; |