sharpd: return check (Coverity 1475198)

Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
F. Aragon 2018-11-30 18:02:09 +01:00
parent f17b99ed17
commit b3beaea00d
No known key found for this signature in database
GPG Key ID: FD112A8C7E6A5E4A

View File

@ -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,