aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vcl/vppcom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c
index 69d9285ff7e..d449fb91d44 100644
--- a/src/vcl/vppcom.c
+++ b/src/vcl/vppcom.c
@@ -1570,7 +1570,8 @@ vppcom_session_stream_connect (uint32_t session_handle,
session->listener_index = parent_session_index;
parent_session = vcl_session_get_w_handle (wrk, parent_session_handle);
- parent_session->n_accepted_sessions++;
+ if (parent_session)
+ parent_session->n_accepted_sessions++;
session = vcl_session_get (wrk, session_index);
VDBG (0, "session %u [0x%llx]: connect %s!", session->session_index,