summaryrefslogtreecommitdiffstats
path: root/src/vnet/tls
diff options
context:
space:
mode:
authorSaravanan Murugesan <sarmurug@cisco.com>2022-02-28 10:55:26 +0530
committerFlorin Coras <florin.coras@gmail.com>2022-02-28 16:33:00 +0000
commit3683d1b5ab253c90506231c1590d92ae95454ee4 (patch)
tree21e249f2038e7d1dd5558fafff496161f1b5ce89 /src/vnet/tls
parent76b86b033ecc7cd7b065a7ddf2fc11480ae96205 (diff)
tls: Receive only when the app_session is available
Type: fix Signed-off-by: Saravanan Murugesan <sarmurug@cisco.com> Change-Id: Icfd5e3c0bb034684c7bc43be46927294536ba08a
Diffstat (limited to 'src/vnet/tls')
-rw-r--r--src/vnet/tls/tls.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vnet/tls/tls.c b/src/vnet/tls/tls.c
index ec5f67081ee..b91282ce074 100644
--- a/src/vnet/tls/tls.c
+++ b/src/vnet/tls/tls.c
@@ -513,6 +513,11 @@ tls_app_rx_callback (session_t * tls_session)
return 0;
ctx = tls_ctx_get (tls_session->opaque);
+ if (PREDICT_FALSE (ctx->no_app_session))
+ {
+ TLS_DBG (1, "Local App closed");
+ return 0;
+ }
tls_ctx_read (ctx, tls_session);
return 0;
}