mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
merge r3515:
fix segfault: ngx_http_upstream_cleanup() cleans r->cleanup, the bug had been introduced in r3426
This commit is contained in:
parent
4fd0e896db
commit
0625f491f4
@ -363,8 +363,6 @@ ngx_http_upstream_create(ngx_http_request_t *r)
|
|||||||
|
|
||||||
if (u && u->cleanup) {
|
if (u && u->cleanup) {
|
||||||
ngx_http_upstream_cleanup(r);
|
ngx_http_upstream_cleanup(r);
|
||||||
*u->cleanup = NULL;
|
|
||||||
u->cleanup = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
u = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_t));
|
u = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_t));
|
||||||
|
Loading…
Reference in New Issue
Block a user