diff options
author | Florin Coras <fcoras@cisco.com> | 2023-09-25 19:50:48 -0700 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2023-10-09 21:37:24 +0000 |
commit | f9af6b32efcd948a2eb449d0d5157c8781786fbb (patch) | |
tree | c4d6e0f88cd045a552d6dc1cb5fd5dbb35a27bfc /src/vnet | |
parent | ee2e50273664745a56305391cb7836900fb36951 (diff) |
tls: init connection for prealloced app sessions
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Icd62dc110e3a73b24372f3a5162f8008b7edee9f
(cherry picked from commit a127d3c157cb6e7658451a877abbfe0dd16c982a)
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/tls/tls.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/tls/tls.c b/src/vnet/tls/tls.c index 5c07cc26a34..c3294634af5 100644 --- a/src/vnet/tls/tls.c +++ b/src/vnet/tls/tls.c @@ -486,6 +486,9 @@ tls_session_accept_callback (session_t * tls_session) * on tls_session rx and potentially invalidating the session pool */ app_session = session_alloc (ctx->c_thread_index); app_session->session_state = SESSION_STATE_CREATED; + 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; ctx->c_s_index = app_session->session_index; TLS_DBG (1, "Accept on listener %u new connection [%u]%x", |