From 2c637c9adbee2e8fbc82b2b546cb41d46cb878ef Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Tue, 22 Dec 2009 14:22:56 +1300 Subject: [PATCH] Author: Jochen Voss Fix failure to reset MD5 context buffer --- lib/md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/md5.c b/lib/md5.c index 955c7aeefe..1a72177112 100644 --- a/lib/md5.c +++ b/lib/md5.c @@ -146,7 +146,7 @@ SquidMD5Final(unsigned char digest[16], struct SquidMD5Context *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 -- 2.47.2