mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-02 15:53:27 +01:00
Merge pull request #5527
9a7a453
net_ssl: free certs after setting them up (moneromooo-monero)
This commit is contained in:
commit
14723fc6e7
@ -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);
|
MERROR("Failed to use generated EC private key for " << NID_secp256k1);
|
||||||
else
|
else
|
||||||
ok = true;
|
ok = true;
|
||||||
// don't free the cert, the CTX owns it now
|
X509_free(cert);
|
||||||
EVP_PKEY_free(pkey);
|
EVP_PKEY_free(pkey);
|
||||||
#endif
|
#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");
|
MERROR("Failed to use generated RSA private key for RSA");
|
||||||
else
|
else
|
||||||
ok = true;
|
ok = true;
|
||||||
// don't free the cert, the CTX owns it now
|
X509_free(cert);
|
||||||
EVP_PKEY_free(pkey);
|
EVP_PKEY_free(pkey);
|
||||||
|
|
||||||
CHECK_AND_ASSERT_THROW_MES(ok, "Failed to use any generated certificate");
|
CHECK_AND_ASSERT_THROW_MES(ok, "Failed to use any generated certificate");
|
||||||
|
Loading…
Reference in New Issue
Block a user