]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - gosthash.c
Merge branch 'no_gost94_sig' into gost12_algs
[openssl-gost/engine.git] / gosthash.c
index ee4a57debbfef24a45e4339b9e79c0b1862bf008..036a2b3520f85319bc324b7e1ce792943affd314 100644 (file)
@@ -154,7 +154,7 @@ static int hash_step(gost_ctx * c, byte * H, const byte * M)
 int init_gost_hash_ctx(gost_hash_ctx * ctx,
                        const gost_subst_block * subst_block)
 {
-    memset(ctx, 0, sizeof(gost_hash_ctx));
+    memset(ctx, 0, sizeof(*ctx));
     ctx->cipher_ctx = (gost_ctx *) MYALLOC(sizeof(gost_ctx));
     if (!ctx->cipher_ctx) {
         return 0;