summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */