Fix memset call in md5.cpp

develop
Ben Lubar 2018-04-05 14:28:00 -05:00
parent 1ec96aa992
commit 5d24aa8b62
No known key found for this signature in database
GPG Key ID: 018BAB45DB2D2B24
1 changed files with 1 additions and 1 deletions

@ -135,7 +135,7 @@ void MD5Final(unsigned char digest[16], MD5Context *ctx)
MD5Transform(ctx->buf, (uint32_t *) ctx->in);
byteReverse((unsigned char *) ctx->buf, 4);
memcpy(digest, ctx->buf, 16);
memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */
memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */
}