diff options
author | Matt Caswell <matt@openssl.org> | 2016-06-24 23:37:27 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-06-30 15:51:57 +0100 |
commit | 3ce2fdabe6e33952bf3011acf5b68107e6352603 (patch) | |
tree | 1db552127f77d0e0615ea2e3019183fd64b9e8dd /crypto/md2 | |
parent | 6f4ae777f5100715a96b45355a1195c2efa96b4e (diff) |
Convert memset calls to OPENSSL_cleanse
Ensure things really do get cleared when we intend them to.
Addresses an OCAP Audit issue.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'crypto/md2')
-rw-r--r-- | crypto/md2/md2_dgst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/md2/md2_dgst.c b/crypto/md2/md2_dgst.c index b43cd4f489..ff062fd472 100644 --- a/crypto/md2/md2_dgst.c +++ b/crypto/md2/md2_dgst.c @@ -168,6 +168,6 @@ int MD2_Final(unsigned char *md, MD2_CTX *c) for (i = 0; i < 16; i++) md[i] = (UCHAR) (p1[i] & 0xff); - memset(&c, 0, sizeof(c)); + OPENSSL_cleanse(c, sizeof(*c)); return 1; } |