From 4f88990d66c73122ad5ee9a499dcc317e451193f Mon Sep 17 00:00:00 2001 From: pettershao-ragilenetworks <81281940+pettershao-ragilenetworks@users.noreply.github.com> Date: Wed, 21 Sep 2022 14:12:46 +0800 Subject: [PATCH] Update static_zebra.c --- staticd/static_zebra.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c index c661ad198f..7c1acdeb20 100644 --- a/staticd/static_zebra.c +++ b/staticd/static_zebra.c @@ -489,6 +489,9 @@ extern void static_zebra_route_add(struct static_path *pn, bool install) api_nh->labels[i] = nh->snh_label.label[i]; } nh_num++; + if (nh_num >= MULTIPATH_NUM) { + break; + } } api.nexthop_num = nh_num;