summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2023-09-20 16:25:44 +0100
committerMatt Caswell <matt@openssl.org>2023-09-22 13:56:43 +0100
commit18fd0ea04d6bd37809a4e9a669c49cf9bc146bfb (patch)
treec5d167544610b76b8079c439597abc383f185bee /test
parentf13f9b716e8b148b97dbe49e823b9dc3f235de1f (diff)
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')
-rw-r--r--test/quic_multistream_test.c6
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))