[openssl-commits] [openssl] OpenSSL_1_0_2-stable update

Dr. Stephen Henson steve at openssl.org
Tue Jul 19 23:19:51 UTC 2016


The branch OpenSSL_1_0_2-stable has been updated
       via  b5c835b39917a715ef45c48e521427eb08221d4d (commit)
      from  9ae9cbc0c7c8a4629a6b68bdc690fe85d82b35ca (commit)


- Log -----------------------------------------------------------------
commit b5c835b39917a715ef45c48e521427eb08221d4d
Author: Dr. Stephen Henson <steve at openssl.org>
Date:   Tue Jul 19 16:03:10 2016 +0100

    Sanity check in ssl_get_algorithm2().
    
    RT#4600
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (cherry picked from commit 52eede5a970fdb30c4ed6d3663e51f36bd1b1c73)
    
    Conflicts:
    	ssl/s3_lib.c

-----------------------------------------------------------------------

Summary of changes:
 ssl/s3_lib.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c
index 872e636..f2aaf36 100644
--- a/ssl/s3_lib.c
+++ b/ssl/s3_lib.c
@@ -4528,7 +4528,10 @@ int ssl3_renegotiate_check(SSL *s)
  */
 long ssl_get_algorithm2(SSL *s)
 {
-    long alg2 = s->s3->tmp.new_cipher->algorithm2;
+    long alg2;
+    if (s->s3 == NULL || s->s3->tmp.new_cipher == NULL)
+        return -1;
+    alg2 = s->s3->tmp.new_cipher->algorithm2;
     if (s->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_SHA256_PRF
         && alg2 == (SSL_HANDSHAKE_MAC_DEFAULT | TLS1_PRF))
         return SSL_HANDSHAKE_MAC_SHA256 | TLS1_PRF_SHA256;


More information about the openssl-commits mailing list