From: Christos Tsantilas Date: Thu, 28 Nov 2019 10:00:45 +0000 (+0200) Subject: peer selection procedure for pinned connection should return the X-Git-Tag: SQUID_4_11~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=358ad2fdf4db45061410bc36ca72645cc927b83d;p=thirdparty%2Fsquid.git peer selection procedure for pinned connection should return the CachePeer object if any. This is required by caller to check if the pinned connection is still valid. --- diff --git a/src/peer_select.cc b/src/peer_select.cc index 3f8317367a..3b203d10aa 100644 --- a/src/peer_select.cc +++ b/src/peer_select.cc @@ -278,6 +278,9 @@ peerSelectDnsPaths(ps_state *psstate) // Send an empty IP address marked as PINNED const Comm::ConnectionPointer p = new Comm::Connection(); p->peerType = PINNED; + // Caller requires to check for pinned connections through + // CachePeer object: + p->setPeer(fs->_peer.get()); psstate->paths->push_back(p); psstate->servers = fs->next; delete fs;