[openssl-commits] [openssl] master update

Matt Caswell matt at openssl.org
Wed Dec 23 13:36:01 UTC 2015


The branch master has been updated
       via  c849c6d9d3bf806fecfe0c16eaa55d361979ff7f (commit)
      from  87a595e554f9e753c3e653c8caae62739c7958b0 (commit)


- Log -----------------------------------------------------------------
commit c849c6d9d3bf806fecfe0c16eaa55d361979ff7f
Author: Todd Short <tshort at akamai.com>
Date:   Tue Dec 22 11:49:36 2015 -0500

    Memory leak in state machine in error path
    
    When EC is disabled, and an error occurs in ssl_generate_master_secret()
    or RAND_bytes(), the error path does not free rsa_decrypt.
    
    RT#4197
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    Reviewed-by: Matt Caswell <matt at openssl.org>

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

Summary of changes:
 ssl/statem/statem_srvr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ssl/statem/statem_srvr.c b/ssl/statem/statem_srvr.c
index 0e6f0d0..79254b5 100644
--- a/ssl/statem/statem_srvr.c
+++ b/ssl/statem/statem_srvr.c
@@ -2620,8 +2620,8 @@ MSG_PROCESS_RETURN tls_process_client_key_exchange(SSL *s, PACKET *pkt)
 #endif
 #ifndef OPENSSL_NO_EC
     EVP_PKEY_free(ckey);
-    OPENSSL_free(rsa_decrypt);
 #endif
+    OPENSSL_free(rsa_decrypt);
 #ifndef OPENSSL_NO_PSK
     OPENSSL_clear_free(s->s3->tmp.psk, s->s3->tmp.psklen);
     s->s3->tmp.psk = NULL;


More information about the openssl-commits mailing list