From 5d24aa8b621dd96e83bfea0c902f7284d840a1b3 Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Thu, 5 Apr 2018 14:28:00 -0500 Subject: [PATCH] Fix memset call in md5.cpp --- depends/md5/md5.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depends/md5/md5.cpp b/depends/md5/md5.cpp index 5ee4fb45f..044df259e 100644 --- a/depends/md5/md5.cpp +++ b/depends/md5/md5.cpp @@ -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 */ }