diff options
author | Quentin Young <qlyoung@nvidia.com> | 2020-10-01 00:22:33 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@nvidia.com> | 2020-10-01 00:22:33 +0200 |
commit | 2fec17cd047defee33e5a469b0c5bf9e2853a8f9 (patch) | |
tree | d6eb4a7971699a6a13a3e4c9c72c9b02d234e11b /lib | |
parent | Merge pull request #7215 from mjstapp/fix_z_mlag_read (diff) | |
download | frr-2fec17cd047defee33e5a469b0c5bf9e2853a8f9.tar.xz frr-2fec17cd047defee33e5a469b0c5bf9e2853a8f9.zip |
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')
-rw-r--r-- | lib/zclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index b7d240b4e..914b02749 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; |