[openssl/openssl] 0577db: Fix a memory leak in tls_new_record_layer

Matt Caswell noreply at github.com
Thu Aug 17 19:38:08 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 0577dbad0709f1b3717297420069c6160245e74d
      https://github.com/openssl/openssl/commit/0577dbad0709f1b3717297420069c6160245e74d
  Author: Matt Caswell <matt at openssl.org>
  Date:   2023-08-17 (Thu, 17 Aug 2023)

  Changed paths:
    M ssl/record/methods/tls_common.c

  Log Message:
  -----------
  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 at me.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21753)




More information about the openssl-commits mailing list