forked from Mirror/frr
lib: fix zapi_nexthop_update_decode error rc
This function returns true on success and false otherwise. Returning -1 on error is equivalent to returning true. Signed-off-by: Quentin Young <qlyoung@nvidia.com>
This commit is contained in:
parent
fb3bc7a74b
commit
2fec17cd04
|
@ -1765,7 +1765,7 @@ bool zapi_nexthop_update_decode(struct stream *s, struct zapi_route *nhr)
|
||||||
|
|
||||||
for (i = 0; i < nhr->nexthop_num; i++) {
|
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, 0) != 0)
|
||||||
return -1;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue