summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cmac/cm_ameth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/cmac/cm_ameth.c')
-rw-r--r--src/lib/libcrypto/cmac/cm_ameth.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libcrypto/cmac/cm_ameth.c b/src/lib/libcrypto/cmac/cm_ameth.c
index 26956465ee..1bc20082c1 100644
--- a/src/lib/libcrypto/cmac/cm_ameth.c
+++ b/src/lib/libcrypto/cmac/cm_ameth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cm_ameth.c,v 1.8 2021/12/12 21:30:13 tb Exp $ */ 1/* $OpenBSD: cm_ameth.c,v 1.9 2022/11/18 14:45:10 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2010. 3 * project 2010.
4 */ 4 */
@@ -73,9 +73,7 @@ cmac_size(const EVP_PKEY *pkey)
73static void 73static void
74cmac_key_free(EVP_PKEY *pkey) 74cmac_key_free(EVP_PKEY *pkey)
75{ 75{
76 CMAC_CTX *cmctx = (CMAC_CTX *)pkey->pkey.ptr; 76 CMAC_CTX_free(pkey->pkey.ptr);
77
78 CMAC_CTX_free(cmctx);
79} 77}
80 78
81const EVP_PKEY_ASN1_METHOD cmac_asn1_meth = { 79const EVP_PKEY_ASN1_METHOD cmac_asn1_meth = {