diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/tls/tls.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/tls/tls.c b/src/vnet/tls/tls.c index 6129b09207b..5f00e6e302d 100644 --- a/src/vnet/tls/tls.c +++ b/src/vnet/tls/tls.c @@ -501,7 +501,6 @@ tls_session_accept_callback (session_t *ts) ctx->c_s_index = SESSION_INVALID_INDEX; ctx->c_thread_index = ts->thread_index; ctx->tls_ctx_handle = ctx_handle; - ts->session_state = SESSION_STATE_READY; ts->opaque = ctx_handle; ctx->tls_session_handle = session_handle (ts); ctx->listener_ctx_index = tls_listener->opaque; @@ -518,6 +517,9 @@ tls_session_accept_callback (session_t *ts) tls_disconnect_transport (ctx); } + if (ts->session_state < SESSION_STATE_READY) + ts->session_state = SESSION_STATE_READY; + return 0; } |