summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-10-11 20:01:10 +0200
committerDonald Sharp <sharpd@nvidia.com>2024-10-15 17:57:23 +0200
commit645a9e4f8389226227af24088b8b55a4246aaed6 (patch)
tree8f4fdb9caf630c3b90ec4ba422517396e92cba53 /lib
parentMerge pull request #17106 from louis-6wind/fix-bmp-converity (diff)
downloadfrr-645a9e4f8389226227af24088b8b55a4246aaed6.tar.xz
frr-645a9e4f8389226227af24088b8b55a4246aaed6.zip
*: Fix up improper handling of nexthops for nexthop tracking
Currently FRR needs to send a uint16_t value for the number of nexthops as well it needs the ability to properly decode all of this. Find and handle all the places that this happens. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/zclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zclient.c b/lib/zclient.c
index 0e832f0d8..557d9c3eb 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -2374,7 +2374,7 @@ static bool zapi_nexthop_update_decode(struct stream *s, struct prefix *match,
STREAM_GETW(s, nhr->instance);
STREAM_GETC(s, nhr->distance);
STREAM_GETL(s, nhr->metric);
- STREAM_GETC(s, nhr->nexthop_num);
+ STREAM_GETW(s, nhr->nexthop_num);
for (i = 0; i < nhr->nexthop_num; i++) {
if (zapi_nexthop_decode(s, &(nhr->nexthops[i]), 0, 0) != 0)