diff options
author | Matt Caswell <matt@openssl.org> | 2023-09-20 17:25:44 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-09-22 14:56:43 +0200 |
commit | 18fd0ea04d6bd37809a4e9a669c49cf9bc146bfb (patch) | |
tree | c5d167544610b76b8079c439597abc383f185bee /test/quic_multistream_test.c | |
parent | Ensure we up-ref the sbio before passing it to tserver (diff) | |
download | openssl-18fd0ea04d6bd37809a4e9a669c49cf9bc146bfb.tar.xz openssl-18fd0ea04d6bd37809a4e9a669c49cf9bc146bfb.zip |
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)
Diffstat (limited to 'test/quic_multistream_test.c')
-rw-r--r-- | test/quic_multistream_test.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c index b401e78e32..2ad4ef292e 100644 --- a/test/quic_multistream_test.c +++ b/test/quic_multistream_test.c @@ -746,10 +746,8 @@ static int helper_init(struct helper *h, int free_order, int blocking, BIO_set_data(h->s_qtf_wbio, h->qtf); } - if (!need_injector) - h->s_net_bio_own = NULL; - - h->s_qtf_wbio_own = NULL; + h->s_net_bio_own = NULL; + h->s_qtf_wbio_own = NULL; h->c_fd = BIO_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0); if (!TEST_int_ge(h->c_fd, 0)) |