diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2018-03-30 19:13:06 +0200 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2018-04-19 15:47:43 +0200 |
commit | c9c56ee50139a143797e12563a1668df02f99c5a (patch) | |
tree | c5450e0250ef793bce8357ab323c6858c4478d1d /crypto/pem/pem_lib.c | |
parent | c190506cd827221a861c3207ae2496ea1ec7a1fd (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/pem_lib.c')
-rw-r--r-- | crypto/pem/pem_lib.c | 2 |
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; } |