summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-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;
}