The resource is not dereferenceable if connection_destructor()
is called from reslist_destroy().
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1687783 13f79535-47bb-0310-9956-
ffa450edef68
static apr_status_t connection_destructor(void *resource, void *params,
apr_pool_t *pool)
{
- proxy_conn_rec *conn = (proxy_conn_rec *)resource;
+ proxy_worker *worker = params;
/* Destroy the pool only if not called from reslist_destroy */
- if (conn->worker->cp->pool) {
+ if (worker->cp->pool) {
+ proxy_conn_rec *conn = resource;
apr_pool_destroy(conn->pool);
}