From 6d7e706194360b4c612113622c2ceb3d9b3d64d3 Mon Sep 17 00:00:00 2001 From: Garrett Holmstrom Date: Mon, 28 May 2012 13:22:32 -0700 Subject: [2.0] md5: zero the whole MD5Context, not only part --- src/modules/m_md5.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_md5.cpp b/src/modules/m_md5.cpp index f8f13dcbc..14ccf16a8 100644 --- a/src/modules/m_md5.cpp +++ b/src/modules/m_md5.cpp @@ -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]) -- cgit v1.2.3