aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/hs_apps
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-01-03 16:44:47 +0000
committerDave Wallace <dwallacelf@gmail.com>2020-01-03 21:38:11 +0000
commit1aaa891864321f2ded4259c709089f3edd6f2667 (patch)
tree9fb6f9ad6344b5efd07af27a8f07fc3411bcc7d3 /src/plugins/hs_apps
parent8d0149d74c198f57dc795eb9e99cdb46112bd737 (diff)
hsa: fix coverity warning
Type:fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I38b155f7617d002ac16943c2c031269a17f4ba73
Diffstat (limited to 'src/plugins/hs_apps')
-rw-r--r--src/plugins/hs_apps/sapi/vpp_echo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/hs_apps/sapi/vpp_echo.c b/src/plugins/hs_apps/sapi/vpp_echo.c
index 0550006f949..560c6a85f3d 100644
--- a/src/plugins/hs_apps/sapi/vpp_echo.c
+++ b/src/plugins/hs_apps/sapi/vpp_echo.c
@@ -498,6 +498,8 @@ session_unlisten_handler (session_unlisten_reply_msg_t * mp)
echo_main_t *em = &echo_main;
ls = echo_get_session_from_handle (em, mp->handle);
+ if (!ls)
+ return;
em->proto_cb_vft->cleanup_cb (ls, 0 /* parent_died */ );
ls->session_state = ECHO_SESSION_STATE_CLOSED;
if (--em->listen_session_cnt == 0)