aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-05-20 13:56:29 -0700
committerDamjan Marion <dmarion@me.com>2021-05-21 06:57:03 +0000
commit22a55e679092ab1eba53d9c743cabc8368fbc880 (patch)
treed1c0693a0ebd7403a4724f92e58f62891cf3c134 /src/plugins
parent0978ae86705f0327f4e0a47dfa190aa070be411e (diff)
quic: init crypto context on streams
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I901980f1f8ae8eb51c3972537ccac80f620868d0
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/quic/quic.c5
1 files changed, 2 insertions, 3 deletions
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);