aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2017-01-20 08:34:15 -0500
committerDamjan Marion <dmarion.lists@gmail.com>2017-01-20 15:01:19 +0000
commit18b2816551a8340a05dc69665d03707fdfcece23 (patch)
tree0d7358a5dd662de85ab26e067d50cd62c371a6ff /src/vnet
parent0ded8518cd3bc24f5f528bd42a5d2ff5c4602faf (diff)
Fix coverity warning, VPP-608
Change-Id: I1086debdf90a51205af17c35e93cd9aeff598135 Signed-off-by: Dave Barach <dave@barachs.net>
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;