Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fix coverity warning, VPP-608
[vpp.git]
/
src
/
vnet
/
unix
/
tapcli.c
diff --git
a/src/vnet/unix/tapcli.c
b/src/vnet/unix/tapcli.c
index
e9dbf72
..
48e81b5
100644
(file)
--- 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;