aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/sha/sha_one.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/sha/sha_one.c')
-rw-r--r--crypto/sha/sha_one.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/sha/sha_one.c b/crypto/sha/sha_one.c
index 5426faae4a..66b083144a 100644
--- a/crypto/sha/sha_one.c
+++ b/crypto/sha/sha_one.c
@@ -70,7 +70,7 @@ unsigned char *SHA(const unsigned char *d, unsigned long n, unsigned char *md)
SHA_Init(&c);
SHA_Update(&c,d,n);
SHA_Final(md,&c);
- memset(&c,0,sizeof(c));
+ OPENSSL_cleanse(&c,sizeof(c));
return(md);
}
#endif