summaryrefslogtreecommitdiffstats
path: root/src/vnet/tls/tls.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2023-10-06 17:31:32 -0700
committerDave Barach <vpp@barachs.net>2023-10-08 00:10:32 +0000
commit3843d0dd03a3ebbdb5d13b54e1b871a8ea72498c (patch)
tree7e812ff62beb36212e9a63b1c4d67695e1b0eba2 /src/vnet/tls/tls.c
parent431b489c5a4f60a82781ace60d07471d003787af (diff)
tls: no read after app close
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I34f8ee2e36d07e8e55e21561528fc6b73feb852f
Diffstat (limited to 'src/vnet/tls/tls.c')
-rw-r--r--src/vnet/tls/tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/tls/tls.c b/src/vnet/tls/tls.c
index 159ed857339..b3cec80c83a 100644
--- a/src/vnet/tls/tls.c
+++ b/src/vnet/tls/tls.c
@@ -514,7 +514,7 @@ tls_app_rx_callback (session_t * tls_session)
return 0;
ctx = tls_ctx_get (tls_session->opaque);
- if (PREDICT_FALSE (ctx->no_app_session))
+ if (PREDICT_FALSE (ctx->no_app_session || ctx->app_closed))
{
TLS_DBG (1, "Local App closed");
return 0;