mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
segmentation fault with 'openssl s_client -prexit -keymatexport'
Reviewed-by: Kurt Roeckx <kurt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1243)
This commit is contained in:
parent
5388b8d4e8
commit
1d8b4eb2b4
@ -2633,7 +2633,8 @@ static void print_stuff(BIO *bio, SSL *s, int full)
|
||||
#endif
|
||||
|
||||
SSL_SESSION_print(bio, SSL_get_session(s));
|
||||
if (keymatexportlabel != NULL) {
|
||||
if ((SSL_get_session(s) != NULL) &&
|
||||
(keymatexportlabel != NULL)) {
|
||||
BIO_printf(bio, "Keying material exporter:\n");
|
||||
BIO_printf(bio, " Label: '%s'\n", keymatexportlabel);
|
||||
BIO_printf(bio, " Length: %i bytes\n", keymatexportlen);
|
||||
|
Loading…
Reference in New Issue
Block a user