summaryrefslogtreecommitdiffstats
path: root/src/plugins/linux-cp/lcp_interface_sync.c
diff options
context:
space:
mode:
authorStanislav Zaikin <zstaseg@gmail.com>2023-02-02 09:54:17 +0100
committerMatthew Smith <mgsmith@netgate.com>2023-02-02 16:43:33 +0000
commit9b02f72fedfdce4dbd64539cb41870347eb67d1d (patch)
treeca0ee8edae1a04f71762f9633961b96a18272b7e /src/plugins/linux-cp/lcp_interface_sync.c
parent051d3a3f60d4a0bbbffd099f21d2fd914957b9a3 (diff)
linux-cp: fix auto-sub-int
lcp_itf_pair_pool could grew during sub-interface creation. Type: fix Signed-off-by: Stanislav Zaikin <zstaseg@gmail.com> Change-Id: Ideafe392f9bb2b418ce9d6faa4f08dfe26f4a273
Diffstat (limited to 'src/plugins/linux-cp/lcp_interface_sync.c')
-rw-r--r--src/plugins/linux-cp/lcp_interface_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/linux-cp/lcp_interface_sync.c b/src/plugins/linux-cp/lcp_interface_sync.c
index 57a8e557379..bd26ebbc354 100644
--- a/src/plugins/linux-cp/lcp_interface_sync.c
+++ b/src/plugins/linux-cp/lcp_interface_sync.c
@@ -389,7 +389,7 @@ lcp_itf_interface_add_del (vnet_main_t *vnm, u32 sw_if_index, u32 is_create)
if (!sup_lip)
return NULL;
- name = format (name, "%s.%d", sup_lip->lip_host_name, sw->sub.id);
+ name = format (name, "%s.%d%c", sup_lip->lip_host_name, sw->sub.id, 0);
LCP_ITF_PAIR_INFO (
"interface_%s: %U has parent %U, auto-creating LCP with host-if %s",