diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-02-03 18:44:59 +0200 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-02-04 22:28:33 +0200 | 
| commit | 4bde9511c3ce427cc9965a6851b677451267def6 (patch) | |
| tree | b8d12f961a236c2fa9d39ee183f15a6601b47eff /staticd/static_zebra.c | |
| parent | 19631dcab5c0a2d72b662ff346c800ee4e9ee0cc (diff) | |
staticd: coverity fixes
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'staticd/static_zebra.c')
| -rw-r--r-- | staticd/static_zebra.c | 6 | 
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  | 
