aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-12-08 11:03:08 -0800
committerFlorin Coras <florin.coras@gmail.com>2021-12-08 18:53:36 +0000
commit74254b5c601d3b8bc68a83cd0d0efced445f8f1d (patch)
tree7eba52696034d5c13bf58711419af747e6276026
parentefb64836f1e6c486e3d6b0cab3d6337d380cd6c7 (diff)
vcl: validate closed sessions on disconnect and reset
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I0375d639e979e29d287dc9fee16b0434fb5c788b
-rw-r--r--src/vcl/vppcom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c
index aa5bf5cf00f..44543bb86ef 100644
--- a/src/vcl/vppcom.c
+++ b/src/vcl/vppcom.c
@@ -3016,7 +3016,7 @@ vcl_epoll_wait_handle_mq_event (vcl_worker_t * wrk, session_event_t * e,
if (vcl_session_is_closed (s) ||
!(s->flags & VCL_SESSION_F_IS_VEP_SESSION))
{
- if (s->flags & VCL_SESSION_F_PENDING_FREE)
+ if (s && (s->flags & VCL_SESSION_F_PENDING_FREE))
vcl_session_free (wrk, s);
break;
}
@@ -3056,7 +3056,7 @@ vcl_epoll_wait_handle_mq_event (vcl_worker_t * wrk, session_event_t * e,
if (vcl_session_is_closed (s) ||
!(s->flags & VCL_SESSION_F_IS_VEP_SESSION))
{
- if (s->flags & VCL_SESSION_F_PENDING_FREE)
+ if (s && (s->flags & VCL_SESSION_F_PENDING_FREE))
vcl_session_free (wrk, s);
break;
}