From e140d5d0255b80f8dda945daf7202b5698d81d9b Mon Sep 17 00:00:00 2001 From: Srikanth Akula Date: Mon, 18 Nov 2019 11:49:58 -0800 Subject: session: extra checks in session validation Type: fix Adding few extra checks while doign session validationwq! Signed-off-by: Srikanth Akula Signed-off-by: Florin Coras Change-Id: I4d18b5ad97d1802ce38a07aeb56b5f35939c1187 --- src/vnet/tls/tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vnet/tls/tls.c') diff --git a/src/vnet/tls/tls.c b/src/vnet/tls/tls.c index 166ec1dd54b..cfe2c3a3eae 100644 --- a/src/vnet/tls/tls.c +++ b/src/vnet/tls/tls.c @@ -428,7 +428,7 @@ tls_session_accept_callback (session_t * tls_session) /* Preallocate app session. Avoids allocating a session post handshake * on tls_session rx and potentially invalidating the session pool */ app_session = session_alloc (ctx->c_thread_index); - app_session->session_state = SESSION_STATE_CLOSED; + app_session->session_state = SESSION_STATE_CREATED; ctx->c_s_index = app_session->session_index; TLS_DBG (1, "Accept on listener %u new connection [%u]%x", @@ -495,7 +495,7 @@ tls_session_connected_callback (u32 tls_app_index, u32 ho_ctx_index, /* Preallocate app session. Avoids allocating a session post handshake * on tls_session rx and potentially invalidating the session pool */ app_session = session_alloc (ctx->c_thread_index); - app_session->session_state = SESSION_STATE_CLOSED; + app_session->session_state = SESSION_STATE_CREATED; ctx->c_s_index = app_session->session_index; return tls_ctx_init_client (ctx); -- cgit 1.2.3-korg