diff options
author | Florin Coras <fcoras@cisco.com> | 2018-12-27 11:53:11 -0800 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2018-12-28 20:41:44 +0000 |
commit | 5a2ec8fc41d14ffc5275ab88761c1fb7e0420a33 (patch) | |
tree | 428fcbd4923da925981717fcfba87fdd55be494b /src/vnet/tls | |
parent | fa915f8180d620b5325789200e08fec674d390ba (diff) |
session: free session after transport and app confirm
In addition to that, a bit of refactoring.
Change-Id: Iea1eabc2167bcdef185ec53bc09bae087c5398e6
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tls')
-rw-r--r-- | src/vnet/tls/tls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/tls/tls.c b/src/vnet/tls/tls.c index 0fdd68c7d38..fdba08c5915 100644 --- a/src/vnet/tls/tls.c +++ b/src/vnet/tls/tls.c @@ -390,7 +390,7 @@ tls_session_disconnect_callback (stream_session_t * tls_session) ctx = tls_ctx_get (tls_session->opaque); if (!tls_ctx_handshake_is_over (ctx)) { - stream_session_disconnect (tls_session); + session_close (tls_session); return; } ctx->is_passive_close = 1; @@ -568,7 +568,7 @@ tls_disconnect (u32 ctx_handle, u32 thread_index) ctx = tls_ctx_get (ctx_handle); tls_disconnect_transport (ctx); - stream_session_delete_notify (&ctx->connection); + session_transport_delete_notify (&ctx->connection); tls_ctx_free (ctx); } |