From: Igor Sysoev Date: Fri, 14 May 2010 09:22:58 +0000 (+0000) Subject: fix segfault: ngx_http_upstream_cleanup() cleans r->cleanup, X-Git-Tag: release-0.8.37~5 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=5739072cfe7ecd27a1f4f70f68b508f54d9d3a75;p=nginx.git fix segfault: ngx_http_upstream_cleanup() cleans r->cleanup, the bug had been introduced in r3419 --- diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 776a3a1df..273d3575e 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -365,8 +365,6 @@ ngx_http_upstream_create(ngx_http_request_t *r) if (u && u->cleanup) { r->main->count++; ngx_http_upstream_cleanup(r); - *u->cleanup = NULL; - u->cleanup = NULL; } u = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_t));