diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-05-14 15:55:25 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-05-14 15:55:25 -0500 |
commit | 14723fc6e7a5a219c74c27e9232127e8fafcccfa (patch) | |
tree | 3afa8bc6adcd634264691846295e7778bd7233d7 /contrib/epee/src/net_ssl.cpp | |
parent | Merge pull request #5526 (diff) | |
parent | net_ssl: free certs after setting them up (diff) | |
download | monero-14723fc6e7a5a219c74c27e9232127e8fafcccfa.tar.xz |
Merge pull request #5527
9a7a453 net_ssl: free certs after setting them up (moneromooo-monero)
Diffstat (limited to 'contrib/epee/src/net_ssl.cpp')
-rw-r--r-- | contrib/epee/src/net_ssl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/epee/src/net_ssl.cpp b/contrib/epee/src/net_ssl.cpp index ba0bef0c7..7d48d2a64 100644 --- a/contrib/epee/src/net_ssl.cpp +++ b/contrib/epee/src/net_ssl.cpp @@ -352,7 +352,7 @@ boost::asio::ssl::context ssl_options_t::create_context() const MERROR("Failed to use generated EC private key for " << NID_secp256k1); else ok = true; - // don't free the cert, the CTX owns it now + X509_free(cert); EVP_PKEY_free(pkey); #endif @@ -362,7 +362,7 @@ boost::asio::ssl::context ssl_options_t::create_context() const MERROR("Failed to use generated RSA private key for RSA"); else ok = true; - // don't free the cert, the CTX owns it now + X509_free(cert); EVP_PKEY_free(pkey); CHECK_AND_ASSERT_THROW_MES(ok, "Failed to use any generated certificate"); |