[openssl] master update

bernd.edlinger at hotmail.de bernd.edlinger at hotmail.de
Thu Nov 4 15:45:42 UTC 2021


The branch master has been updated
       via  b3c34401c088dc247b8b54ea812e7cdde6caf361 (commit)
      from  3841d0f6f02e1ad3a54beabf1d5395bd1c383254 (commit)


- Log -----------------------------------------------------------------
commit b3c34401c088dc247b8b54ea812e7cdde6caf361
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date:   Wed Nov 3 09:40:59 2021 +0100

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

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

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

diff --git a/ssl/statem/extensions_clnt.c b/ssl/statem/extensions_clnt.c
index 78cc226064..b38c9ca684 100644
--- a/ssl/statem/extensions_clnt.c
+++ b/ssl/statem/extensions_clnt.c
@@ -1830,6 +1830,7 @@ int tls_parse_stoc_key_share(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
         skey = EVP_PKEY_new();
         if (skey == NULL || EVP_PKEY_copy_parameters(skey, ckey) <= 0) {
             SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_COPY_PARAMETERS_FAILED);
+            EVP_PKEY_free(skey);
             return 0;
         }
 


More information about the openssl-commits mailing list