From 7ed0037f1e9192a42f4b244221d3bddccc10be63 Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Sun, 6 Sep 2015 20:45:33 +0300 Subject: [PATCH] Correct size of context --- gost_md2012.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2