X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_md2012.c;h=08f3724fb3bc510e396d86f4a6dba7c3282ef309;hb=7ed0037f1e9192a42f4b244221d3bddccc10be63;hp=092de2653a86a1064d0f6670d02cecf251c84269;hpb=57d07eb0dc22bee10aebb0bd37cbdf2258413564;p=openssl-gost%2Fengine.git 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; }