aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/linux-cp/lcp_cli.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/linux-cp/lcp_cli.c b/src/plugins/linux-cp/lcp_cli.c
index 3b0598c1b66..0231f67f835 100644
--- a/src/plugins/linux-cp/lcp_cli.c
+++ b/src/plugins/linux-cp/lcp_cli.c
@@ -72,6 +72,12 @@ lcp_itf_pair_create_command_fn (vlib_main_t *vm, unformat_input_t *input,
unformat_free (line_input);
+ if (!host_if_name)
+ {
+ vec_free (ns);
+ return clib_error_return (0, "host interface name required");
+ }
+
if (sw_if_index == ~0)
{
vec_free (host_if_name);