ossl_quic_channel_free(ctx.qc->ch);
- BIO_free(ctx.qc->net_rbio);
- BIO_free(ctx.qc->net_wbio);
+ BIO_free_all(ctx.qc->net_rbio);
+ BIO_free_all(ctx.qc->net_wbio);
/* Note: SSL_free calls OPENSSL_free(qc) for us */
if (!ossl_quic_channel_set_net_rbio(ctx.qc->ch, net_rbio))
return;
- BIO_free(ctx.qc->net_rbio);
+ BIO_free_all(ctx.qc->net_rbio);
ctx.qc->net_rbio = net_rbio;
if (net_rbio != NULL)
if (!ossl_quic_channel_set_net_wbio(ctx.qc->ch, net_wbio))
return;
- BIO_free(ctx.qc->net_wbio);
+ BIO_free_all(ctx.qc->net_wbio);
ctx.qc->net_wbio = net_wbio;
if (net_wbio != NULL)
return;
ossl_quic_channel_free(srv->ch);
- BIO_free(srv->args.net_rbio);
- BIO_free(srv->args.net_wbio);
+ BIO_free_all(srv->args.net_rbio);
+ BIO_free_all(srv->args.net_wbio);
OPENSSL_free(srv->ssl);
SSL_free(srv->tls);
SSL_CTX_free(srv->ctx);
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))