From 60732dff6df0e0ee7a14b49d458521107ef1a953 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 23 Feb 2024 18:01:45 -0800 Subject: tls: initialize app session app wrk Type: fix Change-Id: I8832839738b96495bd775a778dd736bb25e1236c Signed-off-by: Florin Coras --- src/vnet/tls/tls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/vnet') diff --git a/src/vnet/tls/tls.c b/src/vnet/tls/tls.c index 1e7194c5271..60a819571cf 100644 --- a/src/vnet/tls/tls.c +++ b/src/vnet/tls/tls.c @@ -517,7 +517,7 @@ tls_session_accept_callback (session_t * tls_session) ctx_handle = tls_ctx_alloc (lctx->tls_ctx_engine); ctx = tls_ctx_get (ctx_handle); - memcpy (ctx, lctx, sizeof (*lctx)); + clib_memcpy (ctx, lctx, sizeof (*lctx)); ctx->c_thread_index = vlib_get_thread_index (); ctx->tls_ctx_handle = ctx_handle; tls_session->session_state = SESSION_STATE_READY; @@ -534,6 +534,7 @@ tls_session_accept_callback (session_t * tls_session) app_session->session_type = session_type_from_proto_and_ip (TRANSPORT_PROTO_TLS, ctx->tcp_is_ip4); app_session->connection_index = ctx->tls_ctx_handle; + app_session->app_wrk_index = APP_INVALID_INDEX; ctx->c_s_index = app_session->session_index; TLS_DBG (1, "Accept on listener %u new connection [%u]%x", -- cgit 1.2.3-korg