summaryrefslogtreecommitdiff
path: root/lib/zclient.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2020-09-30 18:22:33 -0400
committerQuentin Young <qlyoung@nvidia.com>2020-09-30 18:22:33 -0400
commit2fec17cd047defee33e5a469b0c5bf9e2853a8f9 (patch)
treed6eb4a7971699a6a13a3e4c9c72c9b02d234e11b /lib/zclient.c
parentfb3bc7a74ba93edb2801b1789c2d1890cd9820eb (diff)
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>
Diffstat (limited to 'lib/zclient.c')
-rw-r--r--lib/zclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zclient.c b/lib/zclient.c
index b7d240b4e8..914b02749e 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -1765,7 +1765,7 @@ bool zapi_nexthop_update_decode(struct stream *s, struct zapi_route *nhr)
for (i = 0; i < nhr->nexthop_num; i++) {
if (zapi_nexthop_decode(s, &(nhr->nexthops[i]), 0, 0) != 0)
- return -1;
+ return false;
}
return true;