diff options
author | Florin Coras <fcoras@cisco.com> | 2022-06-28 20:01:20 -0700 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2022-06-30 18:02:47 +0000 |
commit | b52bd3a23a376dfcdc7f1bff5956f1f663c35a42 (patch) | |
tree | 834f7772b8b894fa168154e6eaf895450d629c4e /src/vcl/vppcom.c | |
parent | 108abc0320094866a00f948f461e17ae889453e0 (diff) |
vcl: check if listener valid on disconnect cleanup
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ie057d0d5a51d3226a1a188cf9d48a5d82dc4a3c7
Diffstat (limited to 'src/vcl/vppcom.c')
-rw-r--r-- | src/vcl/vppcom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index 3a9a7fdc1a9..8476ea44d68 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -797,7 +797,8 @@ vppcom_session_disconnect (u32 session_handle) if (session->listener_index != VCL_INVALID_SESSION_INDEX) { listen_session = vcl_session_get (wrk, session->listener_index); - listen_session->n_accepted_sessions--; + if (listen_session) + listen_session->n_accepted_sessions--; } return VPPCOM_OK; |