]> git.puffer.fish Git - matthieu/frr.git/commitdiff
sharpd: return check (Coverity 1475198)
authorF. Aragon <paco@voltanet.io>
Fri, 30 Nov 2018 17:02:09 +0000 (18:02 +0100)
committerF. Aragon <paco@voltanet.io>
Mon, 3 Dec 2018 15:36:34 +0000 (16:36 +0100)
Signed-off-by: F. Aragon <paco@voltanet.io>
sharpd/sharp_zebra.c

index 12bab73c5e3c31b3fd4f26125d6af85a2f9059f5..f752009eb8fc61312e35b08e0d13bbe44e26aabf 100644 (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,