[2.0] md5: zero the whole MD5Context, not only part

This commit is contained in:
Garrett Holmstrom 2012-05-28 13:22:32 -07:00
parent a441c1b1be
commit 6d7e706194

View File

@ -158,7 +158,7 @@ class MD5Provider : public HashProvider
byteSwap(ctx->buf, 4);
memcpy(digest, ctx->buf, 16);
memset(ctx, 0, sizeof(ctx));
memset(ctx, 0, sizeof(*ctx));
}
void MD5Transform(word32 buf[4], word32 const in[16])