mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
[2.0] md5: zero the whole MD5Context, not only part
This commit is contained in:
parent
a441c1b1be
commit
6d7e706194
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user