mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 07:37:29 +00:00
Merge pull request #2828 from pacovn/Coverity_1472311_null_check
staticd: null check (Coverity 1472311)
This commit is contained in:
commit
9af533f1d9
@ -42,7 +42,7 @@ void static_nht_update(struct prefix *p, uint32_t nh_num,
|
|||||||
|
|
||||||
vrf = vrf_lookup_by_id(vrf_id);
|
vrf = vrf_lookup_by_id(vrf_id);
|
||||||
|
|
||||||
if (!vrf->info)
|
if (!vrf || !vrf->info)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
svrf = vrf->info;
|
svrf = vrf->info;
|
||||||
|
Loading…
Reference in New Issue
Block a user