From: Dmitry Belyavskiy Date: Sun, 6 Sep 2015 17:45:33 +0000 (+0300) Subject: Correct size of context X-Git-Tag: v1.1.0.2~51 X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=commitdiff_plain;h=7ed0037f1e9192a42f4b244221d3bddccc10be63;p=openssl-gost%2Fengine.git Correct size of context --- 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; }