Skip to content

Commit

Permalink
bgpd: fix covery 1566055, label table overrun
Browse files Browse the repository at this point in the history
In case the full label stack is used, there may be
a table overrun happening. Avoid it by increasing the
size of the table.

Fixes: 27f4dee ("bgpd: update the mpls entry to handle return traffic")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
  • Loading branch information
pguibert6WIND committed Jun 27, 2023
1 parent 8a5d9b7 commit 2bf8db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_mplsvpn.c
Original file line number Diff line number Diff line change
Expand Up @@ -3990,7 +3990,7 @@ static void bgp_mplsvpn_nh_label_bind_send_nexthop_label(
{
struct prefix pfx_nh, *p = NULL;
uint32_t num_labels = 0, lsp_num_labels;
mpls_label_t label[MPLS_MAX_LABELS];
mpls_label_t label[MPLS_MAX_LABELS + 1];
struct nexthop *nh;
ifindex_t ifindex = IFINDEX_INTERNAL;
vrf_id_t vrf_id = VRF_DEFAULT;
Expand Down

0 comments on commit 2bf8db7

Please sign in to comment.