aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/mdc2/mdc2_one.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/mdc2/mdc2_one.c')
-rw-r--r--crypto/mdc2/mdc2_one.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/mdc2/mdc2_one.c b/crypto/mdc2/mdc2_one.c
index 6cd141b4d6..37f06c8d77 100644
--- a/crypto/mdc2/mdc2_one.c
+++ b/crypto/mdc2/mdc2_one.c
@@ -69,7 +69,7 @@ unsigned char *MDC2(const unsigned char *d, unsigned long n, unsigned char *md)
MDC2_Init(&c);
MDC2_Update(&c,d,n);
MDC2_Final(md,&c);
- memset(&c,0,sizeof(c)); /* security consideration */
+ OPENSSL_cleanse(&c,sizeof(c)); /* security consideration */
return(md);
}