Commit 3e48cebc authored by valenok's avatar valenok

MD5Update(): memset() call corrected

parent be20ced0
......@@ -1983,7 +1983,7 @@ static void MD5Final(unsigned char digest[16], MD5_CTX *ctx) {
MD5Transform(ctx->buf, (uint32_t *) ctx->in);
byteReverse((unsigned char *) ctx->buf, 4);
memcpy(digest, ctx->buf, 16);
memset((char *) ctx, 0, sizeof(ctx));
memset((char *) ctx, 0, sizeof(*ctx));
}
#endif // !HAVE_MD5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment