Skip to content
Permalink
Browse files

Merge pull request #5527

9a7a453 net_ssl: free certs after setting them up (moneromooo-monero)
  • Loading branch information...
luigi1111 committed May 14, 2019
2 parents 5a67ff2 + 9a7a453 commit 14723fc6e7a5a219c74c27e9232127e8fafcccfa
Showing with 2 additions and 2 deletions.
  1. +2 −2 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");

0 comments on commit 14723fc

Please sign in to comment.
You can’t perform that action at this time.