mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 05:18:47 +00:00
lib: fix crash in show nexthop when vrf deleted
Fix a crash where if we issue a show run after a vrf has been deleted we would crash here due to not null checking. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
parent
48f8e0fdde
commit
c40e980601
@ -986,7 +986,7 @@ void nexthop_group_write_nexthop(struct vty *vty, const struct nexthop *nh)
|
||||
|
||||
if (nh->vrf_id != VRF_DEFAULT) {
|
||||
vrf = vrf_lookup_by_id(nh->vrf_id);
|
||||
vty_out(vty, " nexthop-vrf %s", vrf->name);
|
||||
vty_out(vty, " nexthop-vrf %s", VRF_LOGNAME(vrf));
|
||||
}
|
||||
|
||||
if (nh->nh_label && nh->nh_label->num_labels > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user