chiark / gitweb /
found fix
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 4 Jul 2022 22:41:06 +0000 (23:41 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 4 Jul 2022 22:41:06 +0000 (23:41 +0100)
md5.c

diff --git a/md5.c b/md5.c
index 46cdbe8cd4c3abd13a1d6e3f138fda84efe49f37..828d4c861eaeb8191da59c05929921ee89121015 100644 (file)
--- a/md5.c
+++ b/md5.c
@@ -127,7 +127,7 @@ MD5Final(UINT8 digest[16], struct MD5Context *ctx)
 
        byteSwap(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 */
 }
 
 #ifndef ASM_MD5