Address coverity-reported NULL dereference in SSL_SESSION_print()
authorBenjamin Kaduk <kaduk@mit.edu>
Sun, 1 Jul 2018 17:49:24 +0000 (12:49 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Sun, 1 Jul 2018 23:20:11 +0000 (18:20 -0500)
commit5281bb2252be6575ebb7a8b683e6bd160476fa2a
tree8b1c51b8bd16309bc15f49577968732a4a4a316f
parent8794be2ed8d2e044d8b0135ddb7e903e81335c94
Address coverity-reported NULL dereference in SSL_SESSION_print()

We need to check the provided SSL_SESSION* for NULL before
attempting to derference it to see if it's a TLS 1.3 session.

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/6622)
ssl/ssl_txt.c