summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-11-06 14:36:38 +0100
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-11-18 13:38:33 +0000
commit7fcc9062034226d1bff27ca8d2b46db6bd0a77aa (patch)
treea0c267f6466604e215bf924247c94e4222727bad /src/vnet
parent4fc160d7dd92acae430b15e0edabee6227d56e6e (diff)
bonding: fix non-null terminated vector
Type: fix Change-Id: Iea7d73a304236b525b95bdad3bfdb41e711f8cdb Signed-off-by: Benoît Ganne <bganne@cisco.com> (cherry picked from commit a03c7d5b9280e1cd5d89cb7cc15bd05b56062c95)
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/bonding/cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/bonding/cli.c b/src/vnet/bonding/cli.c
index 4ce8672d914..e65f15d1fa7 100644
--- a/src/vnet/bonding/cli.c
+++ b/src/vnet/bonding/cli.c
@@ -582,8 +582,8 @@ bond_enslave (vlib_main_t * vm, bond_enslave_args_t * args)
}
if (bif->mode == BOND_MODE_LACP)
{
- u8 *name = format (0, "/if/lacp/%u/%u/state", bif->sw_if_index,
- args->slave);
+ u8 *name = format (0, "/if/lacp/%u/%u/state%c", bif->sw_if_index,
+ args->slave, 0);
vec_validate (bm->stats, bif->sw_if_index);
vec_validate (bm->stats[bif->sw_if_index], args->slave);