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

lib/md5.c

index 955c7aeefecb6e10f9cf44011eab2b9dd9fd32f5..1a72177112b783485c5b41716adf1b36a5d4f62c 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