From: Filip Tehlar Date: Fri, 27 Oct 2023 07:56:41 +0000 (+0200) Subject: hsa: fix coverity warning X-Git-Tag: v24.06-rc0~191 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=81c85142194fec2da6e9e2741cc88cfbcae61aa1;p=vpp.git hsa: fix coverity warning Type: test Change-Id: Iba94edb7eb439ddc994d9a16cb52108373d052ce Signed-off-by: Filip Tehlar --- diff --git a/src/plugins/hs_apps/echo_client.c b/src/plugins/hs_apps/echo_client.c index 344f4af81c6..453cbed3859 100644 --- a/src/plugins/hs_apps/echo_client.c +++ b/src/plugins/hs_apps/echo_client.c @@ -530,6 +530,11 @@ ec_ctrl_send (hs_test_cmd_t cmd) } s = session_get_from_handle_if_valid (ecm->ctrl_session_handle); + if (!s) + { + ec_err ("ctrl session not found"); + return -1; + } ec_dbg ("sending test paramters to the server.."); if (ecm->cfg.verbose)