diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-05-06 12:21:59 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-06-16 12:37:00 +0200 |
commit | ad3df365428e95b10a4a6d683e3973860baa76a1 (patch) | |
tree | 3cd0ea73e5fad6f295cfdf635ed49b94564ee830 /src/common/Cryptography/CryptoHash.h | |
parent | 16859944af310a634762cd30934871003a50861e (diff) |
Core/Crypto: Fixed EVP_PKEY reference counting for copied objects
Closes #27943
(cherry picked from commit aa6a0f24312ce6132e55a9aed677362a3b1dc8a9)
Diffstat (limited to 'src/common/Cryptography/CryptoHash.h')
-rw-r--r-- | src/common/Cryptography/CryptoHash.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Cryptography/CryptoHash.h b/src/common/Cryptography/CryptoHash.h index 38f2047c30d..01b488cb4dd 100644 --- a/src/common/Cryptography/CryptoHash.h +++ b/src/common/Cryptography/CryptoHash.h @@ -96,7 +96,7 @@ namespace Trinity::Impl if (this == &right) return *this; - int result = EVP_MD_CTX_copy(_ctx, right._ctx); + int result = EVP_MD_CTX_copy_ex(_ctx, right._ctx); ASSERT(result == 1); _digest = right._digest; return *this; |