summaryrefslogtreecommitdiff
path: root/lib/crypto
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-27 20:03:23 +0200
committerVolker Lendecke <vl@samba.org>2011-03-27 22:22:10 +0200
commita431394ce37a3f647953969c85aac4415184a532 (patch)
treefd3e23e6c0d2718109d768933d67ff2e330f375f /lib/crypto
parent8db0374251b72c3fc82367864da178dc842f588b (diff)
downloadsamba-a431394ce37a3f647953969c85aac4415184a532.tar.gz
s3: Fix Coverity ID 958: BAD_SIZEOF
This is supposed to wipe out the md5 context, not only the first bytes of it. Others, please check!
Diffstat (limited to 'lib/crypto')
-rw-r--r--lib/crypto/md5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/md5.c b/lib/crypto/md5.c
index e6178cc015c..032474478ec 100644
--- a/lib/crypto/md5.c
+++ b/lib/crypto/md5.c
@@ -144,7 +144,7 @@ _PUBLIC_ void MD5Final(uint8_t digest[16], struct MD5Context *ctx)
MD5Transform(ctx->buf, (uint32_t *) ctx->in);
byteReverse((uint8_t *) ctx->buf, 4);
memmove(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 */