diff options
author | Robin Burchell <viroteck@viroteck.net> | 2012-05-30 02:44:18 -0700 |
---|---|---|
committer | Robin Burchell <viroteck@viroteck.net> | 2012-05-30 02:44:18 -0700 |
commit | 3699b0fb216b16b96ba941f33471fcc52e135f50 (patch) | |
tree | cfc2fd0afb71c0ba7b99fbc0a279bd3367c93ea8 /src | |
parent | c5beed4a5f9e7f50c7a26429bff06ed1684238d4 (diff) | |
parent | 6d7e706194360b4c612113622c2ceb3d9b3d64d3 (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')
-rw-r--r-- | src/modules/m_md5.cpp | 2 |
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]) |