[openssl] master update

bernd.edlinger at hotmail.de bernd.edlinger at hotmail.de
Thu Nov 4 15:55:07 UTC 2021


The branch master has been updated
       via  3a069c1b0b4857b838186aeb55378195dfa50823 (commit)
      from  b3c34401c088dc247b8b54ea812e7cdde6caf361 (commit)


- Log -----------------------------------------------------------------
commit 3a069c1b0b4857b838186aeb55378195dfa50823
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/16954)

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

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 b2a5fb077e..c396f69c3a 100644
--- a/ssl/ssl_ciph.c
+++ b/ssl/ssl_ciph.c
@@ -1643,6 +1643,7 @@ STACK_OF(SSL_CIPHER) *ssl_create_cipher_list(SSL_CTX *ctx,
         }
 
         if (!sk_SSL_CIPHER_push(cipherstack, sslc)) {
+            OPENSSL_free(co_list);
             sk_SSL_CIPHER_free(cipherstack);
             return NULL;
         }


More information about the openssl-commits mailing list