diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2018-12-19 00:36:40 +0100 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2019-06-06 17:41:42 +0200 |
commit | 7ed66e2634e6cfbb16a1ef975572e79a479217a8 (patch) | |
tree | cc09cf68cd6e72fe61d428842284a1f584a58a19 /crypto/evp/mac_lib.c | |
parent | be5fc053ed40bb714944f93e2d35265d2096f71f (diff) |
Change EVP_MAC method from copy to dup
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
GH: #7651
Diffstat (limited to 'crypto/evp/mac_lib.c')
-rw-r--r-- | crypto/evp/mac_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/evp/mac_lib.c b/crypto/evp/mac_lib.c index d11fae099c..ee4a68f459 100644 --- a/crypto/evp/mac_lib.c +++ b/crypto/evp/mac_lib.c @@ -50,9 +50,9 @@ void EVP_MAC_CTX_free(EVP_MAC_CTX *ctx) EVP_MAC_CTX *EVP_MAC_CTX_dup(const EVP_MAC_CTX *src) { - EVP_MAC_CTX *dst = EVP_MAC_CTX_new(src->meth); + EVP_MAC_CTX *dst; - if (dst == NULL) + if (src->data == NULL) return NULL; dst = OPENSSL_malloc(sizeof(*dst)); |