projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Change EVP_MAC method from copy to dup
[openssl.git]
/
crypto
/
evp
/
mac_lib.c
diff --git
a/crypto/evp/mac_lib.c
b/crypto/evp/mac_lib.c
index
d11fae0
..
ee4a68f
100644
(file)
--- 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));