If an error occurs constructing the quic record layer, free it properly
authorMatt Caswell <matt@openssl.org>
Fri, 13 Oct 2023 15:33:31 +0000 (16:33 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 23 Oct 2023 09:08:22 +0000 (10:08 +0100)
commitd8a4451fa76c83ba08b42b38848ba9705fbe71a2
tree9a075b7d856a3dde9f1c921863599e2061bdab73
parentd8bf5ea19d388028004f06f2ffcd40dbd80c1845
If an error occurs constructing the quic record layer, free it properly

We need to call quic_free() to free the record layer to ensure than any
BIO that was already set is also freed.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22368)
ssl/quic/quic_tls.c