summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorRobin Burchell <viroteck@viroteck.net>2012-05-30 02:44:18 -0700
committerRobin Burchell <viroteck@viroteck.net>2012-05-30 02:44:18 -0700
commit3699b0fb216b16b96ba941f33471fcc52e135f50 (patch)
treecfc2fd0afb71c0ba7b99fbc0a279bd3367c93ea8 /src/modules
parentc5beed4a5f9e7f50c7a26429bff06ed1684238d4 (diff)
parent6d7e706194360b4c612113622c2ceb3d9b3d64d3 (diff)
Merge pull request #159 from gholms/md5-memset-20
[2.0] md5: zero the whole MD5Context, not only part of it
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_md5.cpp2
1 files changed, 1 insertions, 1 deletions
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])