summaryrefslogtreecommitdiffstats
path: root/src/vcl
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-07-19 12:15:52 -0700
committerFlorin Coras <fcoras@cisco.com>2019-07-19 12:15:52 -0700
commit028eaf075ad884063e229476f5733d3eea4af82c (patch)
treefd1c9e2ab021458cc9f8499962dfe6d6017754d7 /src/vcl
parent751e3f3824fc1a318f8c71ade664bd13c16b335e (diff)
vcl: fix coverity warning
Type:fix Change-Id: I7b91ce9359f94131882ab430606586b1a6cf3e02 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vcl')
-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,