From cf3dbe6e5580157fdd8440fb16bab32f88c66035 Mon Sep 17 00:00:00 2001 From: "guozhongfeng.gzf" Date: Wed, 27 Nov 2024 18:09:40 +0800 Subject: [PATCH] lib:fix get srte color failed Signed-off-by: guozhongfeng.gzf --- lib/zclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zclient.c b/lib/zclient.c index 557d9c3eb9b4..c255562086a0 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -2377,7 +2377,7 @@ static bool zapi_nexthop_update_decode(struct stream *s, struct prefix *match, 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) + if (zapi_nexthop_decode(s, &(nhr->nexthops[i]), 0, nhr->message) != 0) return false; }