lib:fix get srte color failed

Signed-off-by: guozhongfeng.gzf <guozhongfeng.gzf@alibaba-inc.com>
This commit is contained in:
guozhongfeng.gzf 2024-11-27 18:09:40 +08:00
parent 1dcb4bb2d3
commit cf3dbe6e55

View file

@ -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;
}