openssl/ssl/record/methods
Matt Caswell 0577dbad07 Fix a memory leak in tls_new_record_layer
If setting the crypto state has failed then memory might have been
partially allocated to fields within the partially constructed record
layer. We need to call tls_int_free() to properly free it.

Found by the reproducible error patch in openssl#21668

Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21753)
2023-08-17 21:35:53 +02:00
..
build.info Move tls_pad.c into ssl/record/methods 2022-11-14 07:51:17 +00:00
dtls_meth.c Handle app data records from the next epoch 2023-03-31 09:14:24 +01:00
ktls_meth.c Extend the new_record_layer function 2023-01-24 17:16:29 +00:00
recmethod_local.h Fix typos found by codespell 2023-06-15 10:11:46 +10:00
ssl3_cbc.c Rationalize FIPS sources 2023-02-08 16:20:55 +01:00
ssl3_meth.c Rationalize FIPS sources 2023-02-08 16:20:55 +01:00
tls1_meth.c Fix typos found by codespell 2023-06-15 10:11:46 +10:00
tls13_meth.c Rename SSL3_RECORD to TLS_RL_RECORD 2022-11-14 07:51:26 +00:00
tls_common.c Fix a memory leak in tls_new_record_layer 2023-08-17 21:35:53 +02:00
tls_multib.c Rename SSL3_BUFFER to TLS_BUFFER 2022-11-14 07:51:25 +00:00
tls_pad.c Rationalize FIPS sources 2023-02-08 16:20:55 +01:00
tlsany_meth.c Rename SSL3_RECORD to TLS_RL_RECORD 2022-11-14 07:51:26 +00:00