]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Jochen Voss <voss@seehuhn.de>
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 10 Dec 2009 04:14:28 +0000 (17:14 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 10 Dec 2009 04:14:28 +0000 (17:14 +1300)
Fix failure to reset MD5 context buffer

lib/md5.c

index a8a9adec7b4300d39798c83cc67d9196e3f25891..2322e5edd3a1fbde064efd42835b84df8f306386 100644 (file)
--- 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