Skip to content

Commit

Permalink
staticd: coverity fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Ryzhov <[email protected]>
  • Loading branch information
idryzhov committed Feb 3, 2024
1 parent 30e8a9e commit 3af3a8c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion staticd/static_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3af3a8c

Please sign in to comment.