mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-30 15:17:09 +00:00
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>
This commit is contained in:
parent
04748e36a5
commit
c27ad43694
@ -2339,8 +2339,6 @@ static void vpn_leak_to_vrf_update_onevrf(struct bgp *to_bgp, /* to */
|
|||||||
if (!origin_local && path_vpn->extra
|
if (!origin_local && path_vpn->extra
|
||||||
&& path_vpn->extra->num_labels) {
|
&& path_vpn->extra->num_labels) {
|
||||||
num_labels = 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;
|
pLabels = path_vpn->extra->label;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user