mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-20 11:19:56 +00:00
MD5Update(): memset() call corrected
This commit is contained in:
1 parent
be20ced0a1
commit
3e48cebc13
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user