From 1aaa891864321f2ded4259c709089f3edd6f2667 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 3 Jan 2020 16:44:47 +0000 Subject: [PATCH] hsa: fix coverity warning Type:fix Signed-off-by: Florin Coras Change-Id: I38b155f7617d002ac16943c2c031269a17f4ba73 --- src/plugins/hs_apps/sapi/vpp_echo.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.16.6