diff options
Diffstat (limited to 'src/lib/libcrypto/cmac/cm_ameth.c')
-rw-r--r-- | src/lib/libcrypto/cmac/cm_ameth.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/cmac/cm_ameth.c b/src/lib/libcrypto/cmac/cm_ameth.c index 39d8ad3aa8..e7e7fe0f80 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.6 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: cm_ameth.c,v 1.7 2014/07/12 16:03:37 miod 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 | */ |
@@ -74,8 +74,7 @@ cmac_key_free(EVP_PKEY *pkey) | |||
74 | { | 74 | { |
75 | CMAC_CTX *cmctx = (CMAC_CTX *)pkey->pkey.ptr; | 75 | CMAC_CTX *cmctx = (CMAC_CTX *)pkey->pkey.ptr; |
76 | 76 | ||
77 | if (cmctx) | 77 | CMAC_CTX_free(cmctx); |
78 | CMAC_CTX_free(cmctx); | ||
79 | } | 78 | } |
80 | 79 | ||
81 | const EVP_PKEY_ASN1_METHOD cmac_asn1_meth = { | 80 | const EVP_PKEY_ASN1_METHOD cmac_asn1_meth = { |