From ae1a96cc99b1541d2d7dfc98b9229ac36485bde9 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Wed, 30 Sep 2020 18:22:33 -0400 Subject: [PATCH] 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 --- lib/zclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zclient.c b/lib/zclient.c index c5016d22e2..fb48d4a12c 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -1689,7 +1689,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; -- 2.39.5