From 22a55e679092ab1eba53d9c743cabc8368fbc880 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 20 May 2021 13:56:29 -0700 Subject: quic: init crypto context on streams Type: fix Signed-off-by: Florin Coras Change-Id: I901980f1f8ae8eb51c3972537ccac80f620868d0 --- src/plugins/quic/quic.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/plugins/quic/quic.c b/src/plugins/quic/quic.c index 6bdc17d7abf..3223e479461 100644 --- a/src/plugins/quic/quic.c +++ b/src/plugins/quic/quic.c @@ -1014,6 +1014,7 @@ quic_on_stream_open (quicly_stream_open_t * self, quicly_stream_t * stream) sctx->stream = stream; sctx->c_flags |= TRANSPORT_CONNECTION_F_NO_LOOKUP; sctx->flags |= QUIC_F_IS_STREAM; + sctx->crypto_context_index = qctx->crypto_context_index; if (quicly_stream_is_unidirectional (stream->stream_id)) stream_session->flags |= SESSION_F_UNIDIRECTIONAL; @@ -1252,6 +1253,7 @@ quic_connect_stream (session_t * quic_session, session_endpoint_cfg_t * sep) quic_increment_counter (QUIC_ERROR_OPENED_STREAM, 1); sctx->stream = stream; + sctx->crypto_context_index = qctx->crypto_context_index; QUIC_DBG (2, "Opened stream %d, creating session", stream->stream_id); @@ -1814,9 +1816,6 @@ quic_udp_session_connected_callback (u32 quic_app_index, u32 ctx_index, return 0; } - ctx->c_thread_index = thread_index; - ctx->c_c_index = ctx_index; - QUIC_DBG (2, "New ctx [%u]%x", thread_index, (ctx) ? ctx_index : ~0); ctx->udp_session_handle = session_handle (udp_session); -- cgit 1.2.3-korg