]> git.ipfire.org Git - thirdparty/squid.git/commit
Remove HttpRequest::peer_host (#2032)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Thu, 20 Mar 2025 19:44:48 +0000 (19:44 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 22 Mar 2025 19:46:06 +0000 (19:46 +0000)
commit16b17ba916edef35196879481f0ebabc4b988815
treea114a28a7ce74c804b093009f14d7cf45821579d
parenta6b9c45235ade0fd417d9f409de69904201013df
Remove HttpRequest::peer_host (#2032)

HttpRequest::peer_host was added in 2009 commit 9ca29d23 so that
httpFixupAuthentication() could pass copied raw CachePeer::host pointer
value to peer_proxy_negotiate_auth(). Unfortunately, raw peer_host
pointer (to CachePeer::host memory) becomes dangling when CachePeer is
reconfigured away. Instead of maintaining this problematic field, we can
safely obtain the same CachePeer::host value from HttpStateData::_peer.
src/HttpRequest.cc
src/HttpRequest.h
src/clients/HttpTunneler.cc
src/htcp.cc
src/http.cc
src/http.h
src/peer_proxy_negotiate_auth.cc
src/peer_proxy_negotiate_auth.h
src/tunnel.cc