]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 4581: Secure ICAP segfault in checkForMissingCertificates
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 29 Sep 2016 17:14:00 +0000 (06:14 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 29 Sep 2016 17:14:00 +0000 (06:14 +1300)
commit19ed078fbca5f542c3a570e181954ca67e35ce42
tree73e112bd20d749c7c177bfe877e0a1a118b8cfbf
parent5746260566ba2acb9f8f34c0dfaf67fb61d41f77
Bug 4581: Secure ICAP segfault in checkForMissingCertificates

The Security::PeerConnector::request member is NULL in the case of secure
ICAP. This patch checks if this member is NULL before using it.

Also fixes Security::PeerConnector to send to cert validator the correct
domain name. Curretly sends the host name from the HttpRequest object, which
is not correct not only for secure ICAP cases (where this object does not
exist), but also for the cases where squid connecting to a remote proxy
using TLS.

This is a Measurement Factory project
src/security/PeerConnector.cc