Skip to content

Commit

Permalink
m_md5 Backport "zero the whole MD5Context not only part of it" by @gh…
Browse files Browse the repository at this point in the history
  • Loading branch information
attilamolnar committed May 31, 2012
1 parent 37e5bd1 commit ea201d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/m_md5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit ea201d4

Please sign in to comment.