diff options
-rw-r--r-- | gost_md2012.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gost_md2012.c b/gost_md2012.c index 092de26..08f3724 100644 --- a/gost_md2012.c +++ b/gost_md2012.c @@ -83,7 +83,7 @@ static int gost_digest_final(EVP_MD_CTX *ctx, unsigned char *md) static int gost_digest_copy(EVP_MD_CTX *to, const EVP_MD_CTX *from) { if (to->md_data && from->md_data) - memcpy(to->md_data, from->md_data, sizeof(*(from->md_data))); + memcpy(to->md_data, from->md_data, sizeof(gost2012_hash_ctx)); return 1; } |