summaryrefslogtreecommitdiff
path: root/crypto/md2/md2_dgst.c
diff options
context:
space:
mode:
authorDongsun Lee <ds73.lee@samsung.com>2016-09-26 14:27:31 +0900
committerDongsun Lee <ds73.lee@samsung.com>2016-09-26 14:27:31 +0900
commita213d701e675e51d5efc03c19e402d174f483f4c (patch)
tree90a1ba41072aa91234501613f0ea2d67be89aa27 /crypto/md2/md2_dgst.c
parent86af5cfd9400698182796f3c5a2dc6334f1feb9e (diff)
parent00fa4cfde370fcd893adae30169ec00d51381581 (diff)
downloadopenssl-tizen_3.0.tar.gz
openssl-tizen_3.0.tar.bz2
openssl-tizen_3.0.zip
Change-Id: I16b1811518d680619ab815e05e75a8c83bc8d0dc Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
Diffstat (limited to 'crypto/md2/md2_dgst.c')
-rw-r--r--crypto/md2/md2_dgst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/md2/md2_dgst.c b/crypto/md2/md2_dgst.c
index 9cd79f8..7f5d9ba 100644
--- a/crypto/md2/md2_dgst.c
+++ b/crypto/md2/md2_dgst.c
@@ -219,6 +219,6 @@ int MD2_Final(unsigned char *md, MD2_CTX *c)
for (i = 0; i < 16; i++)
md[i] = (UCHAR) (p1[i] & 0xff);
- memset((char *)&c, 0, sizeof(c));
+ OPENSSL_cleanse(c, sizeof(*c));
return 1;
}