aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2024-02-23 18:01:45 -0800
committerFlorin Coras <fcoras@cisco.com>2024-02-23 18:06:36 -0800
commit60732dff6df0e0ee7a14b49d458521107ef1a953 (patch)
tree71900b04b4c800e03e6fa96fcc2d5be6aa65bebd /src
parenteceef16b5c5963ed27aa16b2ead4654b5a7dd391 (diff)
tls: initialize app session app wrk
Type: fix Change-Id: I8832839738b96495bd775a778dd736bb25e1236c Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/tls/tls.c3
1 files changed, 2 insertions, 1 deletions
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",