summaryrefslogtreecommitdiffstats
path: root/crypto/pem
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2018-03-30 19:13:06 +0200
committerBernd Edlinger <bernd.edlinger@hotmail.de>2018-04-19 15:47:43 +0200
commitc9c56ee50139a143797e12563a1668df02f99c5a (patch)
treec5450e0250ef793bce8357ab323c6858c4478d1d /crypto/pem
parentc190506cd827221a861c3207ae2496ea1ec7a1fd (diff)
Clear buffer in PEM_write_bio
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5814)
Diffstat (limited to 'crypto/pem')
-rw-r--r--crypto/pem/pem_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pem/pem_lib.c b/crypto/pem/pem_lib.c
index 830099295c..6e66e9d3e9 100644
--- a/crypto/pem/pem_lib.c
+++ b/crypto/pem/pem_lib.c
@@ -661,7 +661,7 @@ int PEM_write_bio(BIO *bp, const char *name, const char *header,
if (retval == 0)
PEMerr(PEM_F_PEM_WRITE_BIO, reason);
EVP_ENCODE_CTX_free(ctx);
- OPENSSL_free(buf);
+ OPENSSL_clear_free(buf, PEM_BUFSIZE * 8);
return retval;
}