mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 14:13:33 -06:00
fix segfault: ngx_http_upstream_cleanup() cleans r->cleanup,
the bug had been introduced in r3419
This commit is contained in:
parent
fadd4bd25c
commit
5739072cfe
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user