Fix coverity warning, VPP-608
Change-Id: I1086debdf90a51205af17c35e93cd9aeff598135 Signed-off-by: Dave Barach <dave@barachs.net>
This commit is contained in:
committed by
Damjan Marion
parent
0ded8518cd
commit
18b2816551
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user