From: Florin Coras Date: Fri, 3 Jan 2020 16:44:47 +0000 (+0000) Subject: hsa: fix coverity warning X-Git-Tag: v20.05-rc0~66 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F24187%2F3;p=vpp.git hsa: fix coverity warning Type:fix Signed-off-by: Florin Coras Change-Id: I38b155f7617d002ac16943c2c031269a17f4ba73 --- 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)