Ensure we free all the BIOs in a chain for QUIC like we do in TLS
authorMatt Caswell <matt@openssl.org>
Wed, 20 Sep 2023 15:25:44 +0000 (16:25 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 22 Sep 2023 12:56:43 +0000 (13:56 +0100)
commit18fd0ea04d6bd37809a4e9a669c49cf9bc146bfb
treec5d167544610b76b8079c439597abc383f185bee
parentf13f9b716e8b148b97dbe49e823b9dc3f235de1f
Ensure we free all the BIOs in a chain for QUIC like we do in TLS

An application may pass in a whole BIO chain via SSL_set_bio(). When we
free the BIO we should be using BIO_free_all() not BIO_free() like we do
with TLS.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22157)
ssl/quic/quic_impl.c
ssl/quic/quic_tserver.c
test/quic_multistream_test.c