Mercurial > hg > nginx
diff src/http/ngx_http_upstream.c @ 2473:afba93b8bf06 stable-0.6
r2414 merge:
fix segfault
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 26 Jan 2009 15:17:50 +0000 |
parents | a60b3fcf25ec |
children | 8deee4408c94 |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Mon Jan 26 15:09:55 2009 +0000 +++ b/src/http/ngx_http_upstream.c Mon Jan 26 15:17:50 2009 +0000 @@ -2345,7 +2345,9 @@ 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();