summaryrefslogtreecommitdiff
path: root/crypto/md5/md5_one.c
diff options
context:
space:
mode:
authorlevitte <levitte>2002-11-29 11:30:36 +0000
committerlevitte <levitte>2002-11-29 11:30:36 +0000
commitff17a402054cbf1cbf014e099783f999c5a0acd2 (patch)
tree7c66b768515c7555c1622bd944632dca0f7daf8a /crypto/md5/md5_one.c
parent04e6c325571e9e5874a7a3be47dac5a157b1ce9a (diff)
downloadopenssl-ff17a402054cbf1cbf014e099783f999c5a0acd2.tar.gz
A few more memset()s converted to OPENSSL_cleanse().
I *think* I got them all covered by now, bu please, if you find any more, tell me and I'll correct it. PR: 343
Diffstat (limited to 'crypto/md5/md5_one.c')
-rw-r--r--crypto/md5/md5_one.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/md5/md5_one.c b/crypto/md5/md5_one.c
index b89dec850..c67eb795c 100644
--- a/crypto/md5/md5_one.c
+++ b/crypto/md5/md5_one.c
@@ -89,7 +89,7 @@ unsigned char *MD5(const unsigned char *d, unsigned long n, unsigned char *md)
}
#endif
MD5_Final(md,&c);
- memset(&c,0,sizeof(c)); /* security consideration */
+ OPENSSL_cleanse(&c,sizeof(c)); /* security consideration */
return(md);
}