From c27ad436945850d9436c40be83e455f46cda16f9 Mon Sep 17 00:00:00 2001 From: Louis Scalbert Date: Mon, 26 Feb 2024 14:13:25 +0100 Subject: bgpd: num_labels cannot be greater than BGP_MAX_LABELS num_labels cannot be greater than BGP_MAX_LABELS by design. Remove the check and the override. Signed-off-by: Louis Scalbert --- bgpd/bgp_mplsvpn.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'bgpd/bgp_mplsvpn.c') diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c index 6e4f93f1e..fb1243d02 100644 --- a/bgpd/bgp_mplsvpn.c +++ b/bgpd/bgp_mplsvpn.c @@ -2339,8 +2339,6 @@ static void vpn_leak_to_vrf_update_onevrf(struct bgp *to_bgp, /* to */ if (!origin_local && path_vpn->extra && path_vpn->extra->num_labels) { num_labels = path_vpn->extra->num_labels; - if (num_labels > BGP_MAX_LABELS) - num_labels = BGP_MAX_LABELS; pLabels = path_vpn->extra->label; } } -- cgit v1.2.3