diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2023-10-27 09:56:41 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2023-10-27 15:28:29 +0000 |
commit | 81c85142194fec2da6e9e2741cc88cfbcae61aa1 (patch) | |
tree | 916681bfb13ec4e1af0b425d890c32fbc65d2400 /src/plugins | |
parent | 4e8f9be4351ccb3d0b5b1c70177c6a0addbf1fad (diff) |
hsa: fix coverity warning
Type: test
Change-Id: Iba94edb7eb439ddc994d9a16cb52108373d052ce
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/hs_apps/echo_client.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) |