[openssl] OpenSSL_1_1_1-stable update

bernd.edlinger at hotmail.de bernd.edlinger at hotmail.de
Thu Nov 4 15:57:37 UTC 2021


The branch OpenSSL_1_1_1-stable has been updated
       via  80e52bb852673cf6f1908549ff9960d02a644d51 (commit)
      from  bdaf55d0850056fcf3362e5dc1c868f2c8324f25 (commit)


- Log -----------------------------------------------------------------
commit 80e52bb852673cf6f1908549ff9960d02a644d51
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date:   Wed Nov 3 09:19:39 2021 +0100

    Fix a memory leak in ssl_create_cipher_list
    
    Reviewed-by: Paul Dale <pauli at openssl.org>
    Reviewed-by: Matt Caswell <matt at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/16955)

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

Summary of changes:
 ssl/ssl_ciph.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c
index 735a483c64..0820f2cd0c 100644
--- a/ssl/ssl_ciph.c
+++ b/ssl/ssl_ciph.c
@@ -1601,6 +1601,7 @@ STACK_OF(SSL_CIPHER) *ssl_create_cipher_list(const SSL_METHOD *ssl_method,
     for (i = 0; i < sk_SSL_CIPHER_num(tls13_ciphersuites); i++) {
         if (!sk_SSL_CIPHER_push(cipherstack,
                                 sk_SSL_CIPHER_value(tls13_ciphersuites, i))) {
+            OPENSSL_free(co_list);
             sk_SSL_CIPHER_free(cipherstack);
             return NULL;
         }


More information about the openssl-commits mailing list