]> git.kaiwu.me - nginx.git/commitdiff
fix segfault: ngx_http_upstream_cleanup() cleans r->cleanup,
authorIgor Sysoev <igor@sysoev.ru>
Fri, 14 May 2010 09:22:58 +0000 (09:22 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 14 May 2010 09:22:58 +0000 (09:22 +0000)
the bug had been introduced in r3419

src/http/ngx_http_upstream.c

index 776a3a1df23ce65a18450ab6893dfb436c81c82b..273d3575e1b696de302c2a25e96a54bd7f486573 100644 (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));