From b3beaea00de8a8c1dda61a8dc127f78fdc032ec8 Mon Sep 17 00:00:00 2001 From: "F. Aragon" Date: Fri, 30 Nov 2018 18:02:09 +0100 Subject: [PATCH] sharpd: return check (Coverity 1475198) Signed-off-by: F. Aragon --- sharpd/sharp_zebra.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c index 12bab73c5e..f752009eb8 100644 --- a/sharpd/sharp_zebra.c +++ b/sharpd/sharp_zebra.c @@ -223,7 +223,9 @@ void sharp_zebra_nexthop_watch(struct prefix *p, bool watch) if (!watch) command = ZEBRA_NEXTHOP_UNREGISTER; - zclient_send_rnh(zclient, command, p, true, VRF_DEFAULT); + if (zclient_send_rnh(zclient, command, p, true, VRF_DEFAULT) < 0) + zlog_warn("%s: Failure to send nexthop to zebra", + __PRETTY_FUNCTION__); } static int sharp_nexthop_update(int command, struct zclient *zclient, -- 2.39.5