From 4bde9511c3ce427cc9965a6851b677451267def6 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Sat, 3 Feb 2024 18:44:59 +0200 Subject: [PATCH] staticd: coverity fixes Signed-off-by: Igor Ryzhov --- staticd/static_zebra.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5