diff options
author | Pauli <paul.dale@oracle.com> | 2020-01-30 09:04:14 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-01-31 17:52:05 +1000 |
commit | 4a0a9e5767f23f684267eb19e412d26cb288930d (patch) | |
tree | 6b25b9bdc88ec101e53fb23cc1ced0c134423398 /providers | |
parent | ca2bf555cd64bc9624af1259ce3cd27f95a5763e (diff) |
scrypt: free the MD reference correctly.
The code was calling EVP_MD_meth_free which is incorrect. It should call
EVP_MD_free. It happened to work but by luck rather than design.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10973)
Diffstat (limited to 'providers')
-rw-r--r-- | providers/implementations/kdfs/scrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/kdfs/scrypt.c b/providers/implementations/kdfs/scrypt.c index 425db1af6f..ea859b9150 100644 --- a/providers/implementations/kdfs/scrypt.c +++ b/providers/implementations/kdfs/scrypt.c @@ -75,7 +75,7 @@ static void kdf_scrypt_free(void *vctx) KDF_SCRYPT *ctx = (KDF_SCRYPT *)vctx; if (ctx != NULL) { - EVP_MD_meth_free(ctx->sha256); + EVP_MD_free(ctx->sha256); kdf_scrypt_reset(ctx); OPENSSL_free(ctx); } |