diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-06-06 19:13:48 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-06-06 19:13:48 +0000 |
commit | 9f02f1a5eaa6553d161f81495c0e2a38b44a8a69 (patch) | |
tree | edd8e5e4f3eb505e352a1d2bd6a175b3b033266a | |
parent | bc2018301e5ca8dde381497c23758b94e166a798 (diff) |
Fixed bad memset() spotted by clang
-rw-r--r-- | src/md5.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -165,7 +165,7 @@ void MD5Final(unsigned char digest[16], struct MD5Context *ctx) { if (ctx->doByteReverse) byteReverse((unsigned char *) 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 */ } /* The four core functions - F1 is optimized somewhat */ |