051-segfault_export.patch revision 6276
6276N/A# This patch addresses multiple segmentation faults:
6276N/A# Pull Requests submitted to the upstream:
6276N/A# https://github.com/openssl/openssl/pull/1243
6276N/A# Fixed by upstream:
6276N/A#
6276N/A--- a/apps/s_client.c Tue May 3 06:44:42 2016
6276N/A+++ b/apps/s_client.c Wed May 4 15:11:00 2016
6276N/A@@ -2633,7 +2633,8 @@ static void print_stuff(BIO *bio, SSL *s, int full)
6276N/A #endif
6276N/A
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);