diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-08-19 12:15:56 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-19 12:15:56 -0400 |
| commit | cfc0a51f96dde1cad1a360b20235541b915035ee (patch) | |
| tree | 006c528cc6636095738726ae1755d8e0dd1195c8 | |
| parent | dbe45aa73384d302cbc4692d9a3b505174a64465 (diff) | |
| parent | c40e9806011eb4475e6dd7c41234376f944cb904 (diff) | |
Merge pull request #6939 from sworleys/NH-Vrf-Del
lib: fix crash in show nexthop when vrf deleted
| -rw-r--r-- | lib/nexthop_group.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c index 97815ceeb9..8ae001e42a 100644 --- a/lib/nexthop_group.c +++ b/lib/nexthop_group.c @@ -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) { |
