mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
m_md5 Backport "zero the whole MD5Context not only part of it" by @gholms
This commit is contained in:
parent
37e5bd15b8
commit
ea201d49d0
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user