aboutsummaryrefslogtreecommitdiff
path: root/openssl/crypto/buffer/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/crypto/buffer/buffer.c')
-rw-r--r--openssl/crypto/buffer/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl/crypto/buffer/buffer.c b/openssl/crypto/buffer/buffer.c
index d287e340a..eff3e0815 100644
--- a/openssl/crypto/buffer/buffer.c
+++ b/openssl/crypto/buffer/buffer.c
@@ -88,7 +88,7 @@ void BUF_MEM_free(BUF_MEM *a)
return;
if (a->data != NULL) {
- memset(a->data, 0, (unsigned int)a->max);
+ OPENSSL_cleanse(a->data, a->max);
OPENSSL_free(a->data);
}
OPENSSL_free(a);