From: Amos Jeffries Date: Tue, 22 Dec 2009 01:22:56 +0000 (+1300) Subject: Author: Jochen Voss X-Git-Tag: SQUID_3_0_STABLE21~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c637c9adbee2e8fbc82b2b546cb41d46cb878ef;p=thirdparty%2Fsquid.git Author: Jochen Voss Fix failure to reset MD5 context buffer --- 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