]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix SSL_get_peer_certificate memory leak
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 22 Apr 2015 19:45:30 +0000 (22:45 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 22 Apr 2015 19:45:30 +0000 (22:45 +0300)
commitfa17b7f538af9a4ffe6ce28e3728a40cab474a7b
treedf91446e4e1cd9202796e82f0ebd21e7b8470593
parenta88caef6276feeb54d854483eb79776e1d248485
Fix SSL_get_peer_certificate memory leak

The SSL_get_peer_certificate openSSL function increases the lock for X509
object it returns so X509 object retrieved using this function must be
released with X509_free after use.
This patch uses the Ssl::X509_Pointer TidyPointer to release X509 object
retrieved with the SSL_get_peer_certificate function inside the
Ssl::PeerConnector::handleNegotiateError method

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