On Thu, Feb 11, 2016 at 3:12 PM, Stefan Eissing <stefan.eiss...@greenbytes.de> wrote: > >> Am 11.02.2016 um 15:10 schrieb Ruediger Pluem <rpl...@apache.org>: >> >> >> conn->ssl_hostname might be allocated from conn->scpool. >> So the pointer might be invalid after socket_cleanup(conn). So you need to >> apr_pstrdup it first. >> No real good idea which pool to use here. Probably create a temp subpool of >> conn->pool, >> strdup, after socket_cleanup dup with conn->scpool and destroy tmp pool. > > I only dup'ed it once into a stack pointer. So, I used the r->pool for that.
But we don't have an 'r' in ap_proxy_connect_backend(), maybe a new _ex() function is needed.