mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 10:14:50 +00:00
sharpd: return check (Coverity 1475198)
Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
parent
f17b99ed17
commit
b3beaea00d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user