diff options
author | Benoît Ganne <bganne@cisco.com> | 2019-11-06 14:36:38 +0100 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-11-12 16:57:52 +0000 |
commit | a03c7d5b9280e1cd5d89cb7cc15bd05b56062c95 (patch) | |
tree | 38e27295e3e6421e494a97643354d543141773a6 /src/vnet/bonding/cli.c | |
parent | b15d796dbf1da6a229df4e10a3a2bdd700f0354e (diff) |
bonding: fix non-null terminated vector
Type: fix
Change-Id: Iea7d73a304236b525b95bdad3bfdb41e711f8cdb
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vnet/bonding/cli.c')
-rw-r--r-- | src/vnet/bonding/cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/bonding/cli.c b/src/vnet/bonding/cli.c index ba481756086..7e29d1d4a2c 100644 --- a/src/vnet/bonding/cli.c +++ b/src/vnet/bonding/cli.c @@ -592,8 +592,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); |