summaryrefslogtreecommitdiff
path: root/src/md5.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-06-06 19:13:48 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-06-06 19:13:48 +0000
commit9f02f1a5eaa6553d161f81495c0e2a38b44a8a69 (patch)
treeedd8e5e4f3eb505e352a1d2bd6a175b3b033266a /src/md5.c
parentbc2018301e5ca8dde381497c23758b94e166a798 (diff)
Fixed bad memset() spotted by clang
Diffstat (limited to 'src/md5.c')
-rw-r--r--src/md5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/md5.c b/src/md5.c
index 638e05a..d5b8945 100644
--- a/src/md5.c
+++ b/src/md5.c
@@ -165,7 +165,7 @@ void MD5Final(unsigned char digest[16], struct MD5Context *ctx) {
if (ctx->doByteReverse)
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 */
}
/* The four core functions - F1 is optimized somewhat */