openssl/ssl/record
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
..
methods Fix a memory leak in tls_new_record_layer 2023-08-17 21:35:53 +02:00
build.info Move declarations out of record.h and record_local.h 2022-11-14 07:51:17 +00:00
rec_layer_d1.c Allow partially releasing a record for TLS 2023-04-12 11:02:01 +10:00
rec_layer_s3.c Don't free the prev BIO prematurely 2023-08-17 08:06:43 +01:00
record_local.h Move declarations out of record.h and record_local.h 2022-11-14 07:51:17 +00:00
record.h Allow partially releasing a record for TLS 2023-04-12 11:02:01 +10:00