[openssl] OpenSSL_1_1_1-stable update
bernd.edlinger at hotmail.de
bernd.edlinger at hotmail.de
Thu Nov 4 15:51:11 UTC 2021
The branch OpenSSL_1_1_1-stable has been updated
via bdaf55d0850056fcf3362e5dc1c868f2c8324f25 (commit)
from afbea17ded816aba6d7106671b405de82da5c6f3 (commit)
- Log -----------------------------------------------------------------
commit bdaf55d0850056fcf3362e5dc1c868f2c8324f25
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/16957)
-----------------------------------------------------------------------
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 ce8a75794c..621fcfa561 100644
--- a/ssl/statem/extensions_clnt.c
+++ b/ssl/statem/extensions_clnt.c
@@ -1872,6 +1872,7 @@ int tls_parse_stoc_key_share(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
if (skey == NULL || EVP_PKEY_copy_parameters(skey, ckey) <= 0) {
SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_F_TLS_PARSE_STOC_KEY_SHARE,
ERR_R_MALLOC_FAILURE);
+ EVP_PKEY_free(skey);
return 0;
}
if (!EVP_PKEY_set1_tls_encodedpoint(skey, PACKET_data(&encoded_pt),
More information about the openssl-commits
mailing list