mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 20:18:54 +00:00
Merge pull request #18235 from donaldsharp/static_registering_unknown_vrf
staticd: Fix crash because registering unknown vrf
This commit is contained in:
commit
1016090a8a
@ -323,6 +323,10 @@ void static_zebra_nht_register(struct static_nexthop *nh, bool reg)
|
||||
|
||||
if (!static_zebra_nht_get_prefix(nh, &lookup.nh))
|
||||
return;
|
||||
|
||||
if (nh->nh_vrf_id == VRF_UNKNOWN)
|
||||
return;
|
||||
|
||||
lookup.nh_vrf_id = nh->nh_vrf_id;
|
||||
lookup.safi = si->safi;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user