summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-08-07 21:39:27 -0700
committerFlorin Coras <florin.coras@gmail.com>2019-08-09 15:10:18 +0000
commit1403fe604729078fb8a5e1f73cac1ae7ca4b8a8d (patch)
treed0196659398a87d1beef6e2a2197ff767d8c013f /src/vnet
parent58e95bc2cdff71fb72e8b2e150cfb8e0d8e64103 (diff)
tls: handle transport reset
Type:fix Change-Id: I5994fb53dc4b9fd58920b3d67472c38b41db27c2 Signed-off-by: Florin Coras <fcoras@cisco.com> (cherry picked from commit f03c49413f270386d46a82dd9a3bce819cf81250)
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/tls/tls.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vnet/tls/tls.c b/src/vnet/tls/tls.c
index 16405707bc9..1358f9cb345 100644
--- a/src/vnet/tls/tls.c
+++ b/src/vnet/tls/tls.c
@@ -357,7 +357,12 @@ tls_ctx_handshake_is_over (tls_ctx_t * ctx)
void
tls_session_reset_callback (session_t * s)
{
- clib_warning ("called...");
+ tls_ctx_t *ctx;
+
+ ctx = tls_ctx_get (s->opaque);
+ session_transport_reset_notify (&ctx->connection);
+ session_transport_closed_notify (&ctx->connection);
+ tls_disconnect_transport (ctx);
}
int