]> granicus.if.org Git - apache/commit
mod_proxy: fix proxy connection cleanup from an n+2 pool.
authorYann Ylavic <ylavic@apache.org>
Mon, 29 Jan 2018 16:41:03 +0000 (16:41 +0000)
committerYann Ylavic <ylavic@apache.org>
Mon, 29 Jan 2018 16:41:03 +0000 (16:41 +0000)
commit2baf370c0a4dae4a934b3eefb8a2580dcb50649c
tree3cfb1f0819ddd341418904847c4098c81bd64f8d
parentc75bda95cc200daabef94ac4d000ebe20917b989
mod_proxy: fix proxy connection cleanup from an n+2 pool.

When connection_destructor() is called after pchild is gone, we can't
dereference worker->cp anymore. This happens is debug/one_process mode only,
if we exit by calling apr_terminate() or clearing the process pool directly.

Fix this by NULL-ing worker->cp in conn_pool_cleanup(), and by registering it
as a pre_cleanup.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1822531 13f79535-47bb-0310-9956-ffa450edef68
modules/proxy/proxy_util.c