summaryrefslogtreecommitdiff
path: root/ssl/quic/quic_channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssl/quic/quic_channel.c')
-rw-r--r--ssl/quic/quic_channel.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/ssl/quic/quic_channel.c b/ssl/quic/quic_channel.c
index bb693352e7..5d72ac82a3 100644
--- a/ssl/quic/quic_channel.c
+++ b/ssl/quic/quic_channel.c
@@ -225,26 +225,6 @@ static int ch_init(QUIC_CHANNEL *ch)
goto err;
}
- if ((ch->stream0 = ossl_quic_stream_map_alloc(&ch->qsm, 0,
- QUIC_STREAM_INITIATOR_CLIENT
- | QUIC_STREAM_DIR_BIDI)) == NULL)
- goto err;
-
- if ((ch->stream0->sstream = ossl_quic_sstream_new(INIT_APP_BUF_LEN)) == NULL)
- goto err;
-
- if ((ch->stream0->rstream = ossl_quic_rstream_new(NULL, NULL, 0)) == NULL)
- goto err;
-
- if (!ossl_quic_txfc_init(&ch->stream0->txfc, &ch->conn_txfc))
- goto err;
-
- if (!ossl_quic_rxfc_init(&ch->stream0->rxfc, &ch->conn_rxfc,
- 1 * 1024 * 1024,
- 5 * 1024 * 1024,
- get_time, ch))
- goto err;
-
/* Plug in the TLS handshake layer. */
tls_args.s = ch->tls;
tls_args.crypto_send_cb = ch_on_crypto_send;
@@ -311,11 +291,6 @@ static void ch_cleanup(QUIC_CHANNEL *ch)
ossl_statm_destroy(&ch->statm);
ossl_ackm_free(ch->ackm);
- if (ch->stream0 != NULL) {
- assert(ch->have_qsm);
- ossl_quic_stream_map_release(&ch->qsm, ch->stream0); /* frees sstream */
- }
-
if (ch->have_qsm)
ossl_quic_stream_map_cleanup(&ch->qsm);