From: Amos Jeffries Date: Thu, 10 Dec 2009 04:14:28 +0000 (+1300) Subject: Author: Jochen Voss X-Git-Tag: SQUID_3_2_0_1~515 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d7d4abf36bdb769d01ab2a98dffedf1c39bb969;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 a8a9adec7b..2322e5edd3 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