diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2021-11-03 09:19:39 +0100 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2021-11-04 16:57:08 +0100 |
commit | 80e52bb852673cf6f1908549ff9960d02a644d51 (patch) | |
tree | 179662bd077ae18c0abbd81d39a2fdd853f21ee3 /ssl | |
parent | bdaf55d0850056fcf3362e5dc1c868f2c8324f25 (diff) |
Fix a memory leak in ssl_create_cipher_list
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16955)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_ciph.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |