aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/unix/tapcli.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/unix/tapcli.c b/src/vnet/unix/tapcli.c
index e9dbf729141..48e81b5070e 100644
--- a/src/vnet/unix/tapcli.c
+++ b/src/vnet/unix/tapcli.c
@@ -1340,6 +1340,9 @@ tap_connect_command_fn (vlib_main_t * vm,
format_unformat_error, line_input);
}
+ if (intfc_name == 0)
+ return clib_error_return (0, "interface name must be specified");
+
memset (ap, 0, sizeof (*ap));
ap->intfc_name = intfc_name;