summaryrefslogtreecommitdiff
path: root/staticd
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-02-03 18:44:59 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2024-02-04 22:28:33 +0200
commit4bde9511c3ce427cc9965a6851b677451267def6 (patch)
treeb8d12f961a236c2fa9d39ee183f15a6601b47eff /staticd
parent19631dcab5c0a2d72b662ff346c800ee4e9ee0cc (diff)
staticd: coverity fixes
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'staticd')
-rw-r--r--staticd/static_zebra.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c
index 697afa5156..a635cccb09 100644
--- a/staticd/static_zebra.c
+++ b/staticd/static_zebra.c
@@ -164,10 +164,14 @@ static int route_notify_owner(ZAPI_CALLBACK_ARGS)
static void zebra_connected(struct zclient *zclient)
{
+ struct vrf *vrf;
+
zebra_route_notify_send(ZEBRA_ROUTE_NOTIFY_REQUEST, zclient, true);
zclient_send_reg_requests(zclient, VRF_DEFAULT);
- static_fixup_vrf_ids(vrf_lookup_by_id(VRF_DEFAULT));
+ vrf = vrf_lookup_by_id(VRF_DEFAULT);
+ assert(vrf);
+ static_fixup_vrf_ids(vrf);
}
/* API to check whether the configured nexthop address is