diff options
author | Milan Broz <gmazyland@gmail.com> | 2022-10-29 11:48:51 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-11-10 18:10:48 +0100 |
commit | 373d90128042cb0409e347827d80b50a99d3965a (patch) | |
tree | 64b4a300cee9a2bee10a2792e823a339d08ec6e7 /doc/internal | |
parent | 608aca8ed2becccfe9c238846834ea2b162fc98b (diff) |
pem: avoid segfault if PKEY is NULL in PEM_write_bio_PrivateKey
Make the code more robust and correctly handle EVP_PKEY set to NULL
instead of dereferencing null pointer.
Signed-off-by: Milan Broz <gmazyland@gmail.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19536)
Diffstat (limited to 'doc/internal')
0 files changed, 0 insertions, 0 deletions