tls: no read after app close 25/39625/3
authorFlorin Coras <fcoras@cisco.com>
Sat, 7 Oct 2023 00:31:32 +0000 (17:31 -0700)
committerDave Barach <vpp@barachs.net>
Sun, 8 Oct 2023 00:10:32 +0000 (00:10 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I34f8ee2e36d07e8e55e21561528fc6b73feb852f

src/vnet/tls/tls.c

index 159ed85..b3cec80 100644 (file)
@@ -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;