]> 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:25:36 +0000 (22:25 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 22 Apr 2015 19:25:36 +0000 (22:25 +0300)
commitdf01730cd205c0d051017879d18a2e735f3b2fff
tree8aa470b48635fa36c8768ba68b817c9dab152985
parent68920ad862cc12cb6404a8fc3b2371a3e7afb6e1
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