fix segfault: ngx_http_upstream_cleanup() cleans r->cleanup,

the bug had been introduced in r3419
This commit is contained in:
Igor Sysoev 2010-05-14 09:22:58 +00:00
parent 294b17b1c4
commit 899a35a7f8
1 changed files with 0 additions and 2 deletions

View File

@ -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));