diff options
author | F. Aragon <paco@voltanet.io> | 2018-11-30 18:02:09 +0100 |
---|---|---|
committer | F. Aragon <paco@voltanet.io> | 2018-12-03 16:36:34 +0100 |
commit | b3beaea00de8a8c1dda61a8dc127f78fdc032ec8 (patch) | |
tree | d23c961f3acf402aec615d28b6053a7f7f9299b5 /sharpd | |
parent | zebra: handle neighbor delete from kernel for ipv4 link-local (diff) | |
download | frr-b3beaea00de8a8c1dda61a8dc127f78fdc032ec8.tar.xz frr-b3beaea00de8a8c1dda61a8dc127f78fdc032ec8.zip |
sharpd: return check (Coverity 1475198)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'sharpd')
-rw-r--r-- | sharpd/sharp_zebra.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c index 12bab73c5..f752009eb 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, |