m_md5 Backport "zero the whole MD5Context not only part of it" by @gholms

This commit is contained in:
attilamolnar 2012-05-31 23:57:38 +02:00
parent 37e5bd15b8
commit ea201d49d0

View File

@ -158,7 +158,7 @@ class ModuleMD5 : public Module
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])