diff options
author | Garrett Holmstrom <gholms@fedoraproject.org> | 2012-05-28 13:22:32 -0700 |
---|---|---|
committer | Garrett Holmstrom <gholms@fedoraproject.org> | 2012-05-28 13:22:32 -0700 |
commit | 6d7e706194360b4c612113622c2ceb3d9b3d64d3 (patch) | |
tree | 546e9375c616d04e2b1afca75b9742800c5b82e8 /src/modules | |
parent | a441c1b1be087a9974dad211aa3706e1909d6ab3 (diff) |
[2.0] md5: zero the whole MD5Context, not only part
Diffstat (limited to 'src/modules')
-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]) |