Blame SOURCES/openssl-1.0.1e-cve-2014-3470.patch

ff4ef5
commit 4ad43d511f6cf064c66eb4bfd0fb0919b5dd8a86
ff4ef5
Author: Dr. Stephen Henson <steve@openssl.org>
ff4ef5
Date:   Thu May 29 15:00:05 2014 +0100
ff4ef5
ff4ef5
    Fix CVE-2014-3470
ff4ef5
    
ff4ef5
    Check session_cert is not NULL before dereferencing it.
ff4ef5
ff4ef5
diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c
ff4ef5
index d35376d..4324f8d 100644
ff4ef5
--- a/ssl/s3_clnt.c
ff4ef5
+++ b/ssl/s3_clnt.c
ff4ef5
@@ -2511,6 +2511,13 @@ int ssl3_send_client_key_exchange(SSL *s)
ff4ef5
 			int ecdh_clnt_cert = 0;
ff4ef5
 			int field_size = 0;
ff4ef5
 
ff4ef5
+			if (s->session->sess_cert == NULL) 
ff4ef5
+				{
ff4ef5
+				ssl3_send_alert(s,SSL3_AL_FATAL,SSL_AD_UNEXPECTED_MESSAGE);
ff4ef5
+				SSLerr(SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE,SSL_R_UNEXPECTED_MESSAGE);
ff4ef5
+				goto err;
ff4ef5
+				}
ff4ef5
+
ff4ef5
 			/* Did we send out the client's
ff4ef5
 			 * ECDH share for use in premaster
ff4ef5
 			 * computation as part of client certificate?