summaryrefslogtreecommitdiff
path: root/sharpd/sharp_zebra.c
diff options
context:
space:
mode:
Diffstat (limited to 'sharpd/sharp_zebra.c')
-rw-r--r--sharpd/sharp_zebra.c4
1 files changed, 3 insertions, 1 deletions
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,