openssl/ssl
Niels Dossche b2474b287f Fix memory leak in tls_parse_ctos_psk()
`sess` is not NULL at this point, and is freed on the success path, but
not on the error path. Fix this by going to the `err` label such that
`SSL_SESSION_free(sess)` is called.

CLA: trivial

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25643)
2024-10-11 14:54:03 +02:00
..
quic Rename list macros 2024-09-26 10:02:30 +02:00
record ssl: rework "e_os.h" inclusions 2024-09-05 17:02:51 +02:00
rio
statem Fix memory leak in tls_parse_ctos_psk() 2024-10-11 14:54:03 +02:00
bio_ssl.c bio_ssl.c: Do not call SSL_shutdown if not inited 2024-06-25 16:06:17 +02:00
build.info Remove the event queue code 2024-08-07 19:48:26 +02:00
d1_lib.c ssl: rework "e_os.h" inclusions 2024-09-05 17:02:51 +02:00
d1_msg.c
d1_srtp.c
methods.c
pqueue.c
priority_queue.c Copyright year updates 2024-09-05 09:35:49 +02:00
s3_enc.c EVP_MD_size() updates 2024-08-29 10:29:53 +02:00
s3_lib.c ssl: rework "e_os.h" inclusions 2024-09-05 17:02:51 +02:00
s3_msg.c
ssl_asn1.c
ssl_cert_comp.c Copyright year updates 2024-09-05 09:35:49 +02:00
ssl_cert_table.h
ssl_cert.c Check file name for not being NULL before opening it 2024-09-26 20:35:26 +02:00
ssl_ciph.c EVP_MD_size() updates 2024-08-29 10:29:53 +02:00
ssl_conf.c ssl: rework "e_os.h" inclusions 2024-09-05 17:02:51 +02:00
ssl_err_legacy.c
ssl_err.c Check that a supported_versions extension is present in an HRR 2024-08-07 19:34:23 +02:00
ssl_init.c Copyright year updates 2024-09-05 09:35:49 +02:00
ssl_lib.c Cleanup of unused functions and macros in ssl_local.h 2024-09-10 20:43:16 +02:00
ssl_local.h Cleanup of unused functions and macros in ssl_local.h 2024-09-10 20:43:16 +02:00
ssl_mcnf.c Copyright year updates 2024-09-05 09:35:49 +02:00
ssl_rsa_legacy.c Check file name for not being NULL before opening it 2024-09-26 20:35:26 +02:00
ssl_rsa.c Check file name for not being NULL before opening it 2024-09-26 20:35:26 +02:00
ssl_sess.c Incorporate review feedback 2024-06-21 07:57:56 -04:00
ssl_stat.c Copyright year updates 2024-09-05 09:35:49 +02:00
ssl_txt.c Copyright year updates 2024-09-05 09:35:49 +02:00
ssl_utst.c
sslerr.h
t1_enc.c
t1_lib.c adds TLS signature algorithms list feature 2024-08-13 11:48:54 +10:00
t1_trce.c IANA has assigned numbers for new TLS Supported Groups in ML-KEM 2024-09-13 14:09:34 +02:00
tls13_enc.c Copyright year updates 2024-09-05 09:35:49 +02:00
tls_depr.c
tls_srp.c