aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/pkcs7/bio_ber.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/pkcs7/bio_ber.c')
-rw-r--r--crypto/pkcs7/bio_ber.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pkcs7/bio_ber.c b/crypto/pkcs7/bio_ber.c
index 42331f7ab0..895a91177b 100644
--- a/crypto/pkcs7/bio_ber.c
+++ b/crypto/pkcs7/bio_ber.c
@@ -145,7 +145,7 @@ static int ber_free(BIO *a)
if (a == NULL) return(0);
b=(BIO_BER_CTX *)a->ptr;
- memset(a->ptr,0,sizeof(BIO_BER_CTX));
+ OPENSSL_cleanse(a->ptr,sizeof(BIO_BER_CTX));
OPENSSL_free(a->ptr);
a->ptr=NULL;
a->init=0;