diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-05-14 09:22:58 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-05-14 09:22:58 +0000 |
commit | 5739072cfe7ecd27a1f4f70f68b508f54d9d3a75 (patch) | |
tree | 0b76fba5ebd0d1d763e138200d015831f47b443a /src | |
parent | fadd4bd25c04ef814924b03d2d5eb1da528650fe (diff) | |
download | nginx-5739072cfe7ecd27a1f4f70f68b508f54d9d3a75.tar.gz nginx-5739072cfe7ecd27a1f4f70f68b508f54d9d3a75.zip |
fix segfault: ngx_http_upstream_cleanup() cleans r->cleanup,
the bug had been introduced in r3419
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_upstream.c | 2 |
1 files changed, 0 insertions, 2 deletions
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)); |