6276N/A# This patch addresses multiple segmentation faults:
6276N/A# Pull Requests submitted to the upstream:
6276N/A@@ -2633,7 +2633,8 @@ static void print_stuff(BIO *bio, SSL *s, int full)
6276N/A SSL_SESSION_print(bio, SSL_get_session(s));
6276N/A- if (keymatexportlabel != NULL) {
6276N/A+ if ((SSL_get_session(s) != NULL) &&
6276N/A+ (keymatexportlabel != NULL)) {
6276N/A BIO_printf(bio, "Keying material exporter:\n");
6276N/A BIO_printf(bio, " Label: '%s'\n", keymatexportlabel);
6276N/A BIO_printf(bio, " Length: %i bytes\n", keymatexportlen);