aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/hs_apps
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-04-13 15:45:54 -0700
committerDamjan Marion <dmarion@me.com>2021-04-14 10:26:57 +0000
commit297af4f49f5a2da3b72877b665ac8e1eae0b7bdf (patch)
treece071aae11b598d1cb1abb2e47d1cbc7ba97db07 /src/plugins/hs_apps
parent27d87d32441e717b1b3b1569620d19a4677c9fbb (diff)
hsa: fix coverity warnings
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I1c38abde67c2f9be22186359a39ebc3a769b4a7f
Diffstat (limited to 'src/plugins/hs_apps')
-rw-r--r--src/plugins/hs_apps/proxy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/hs_apps/proxy.c b/src/plugins/hs_apps/proxy.c
index 295968a2450..000815813ce 100644
--- a/src/plugins/hs_apps/proxy.c
+++ b/src/plugins/hs_apps/proxy.c
@@ -793,7 +793,8 @@ proxy_server_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
if (vlib_num_workers ())
clib_spinlock_init (&pm->sessions_lock);
- unformat_user (input, unformat_line_input, line_input);
+ if (!unformat_user (input, unformat_line_input, line_input))
+ return 0;
while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
{
@@ -857,7 +858,7 @@ proxy_server_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
}
if (parse_uri ((char *) client_uri, &pm->client_sep))
{
- error = clib_error_return (0, "Invalid client uri %v", server_uri);
+ error = clib_error_return (0, "Invalid client uri %v", client_uri);
goto done;
}