diff options
| author | Louis Scalbert <louis.scalbert@6wind.com> | 2024-02-26 14:13:25 +0100 | 
|---|---|---|
| committer | Louis Scalbert <louis.scalbert@6wind.com> | 2024-06-05 11:08:46 +0200 | 
| commit | c27ad436945850d9436c40be83e455f46cda16f9 (patch) | |
| tree | 69c3bb4edaab324424eb127fbb40d04efb7c24a3 /bgpd/bgp_mplsvpn.c | |
| parent | 04748e36a5d5e6dd22979bac0c81b96158a7e8f1 (diff) | |
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 <louis.scalbert@6wind.com>
Diffstat (limited to 'bgpd/bgp_mplsvpn.c')
| -rw-r--r-- | bgpd/bgp_mplsvpn.c | 2 | 
1 files changed, 0 insertions, 2 deletions
diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c index 6e4f93f1ea..fb1243d029 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;  		}  	}  | 
