summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-10-15 12:01:00 +0300
committerGitHub <noreply@github.com>2021-10-15 12:01:00 +0300
commitfbdde12ad332ffeb402395996989a271a1bc0994 (patch)
treedef379d99db85177d40bf6cebbeb7eafee936674
parent38212d46ce036d89d8aec41bc76d8bee6278b3b0 (diff)
parent9a0e62d41e2fd3b5aa9e2e3b5830c58fd7589449 (diff)
Merge pull request #9834 from idryzhov/pbr-null-deref
pbrd: protect from a possible NULL dereference
-rw-r--r--pbrd/pbr_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c
index d083b9d2b0..9436f4430b 100644
--- a/pbrd/pbr_vty.c
+++ b/pbrd/pbr_vty.c
@@ -499,7 +499,7 @@ DEFPY(pbr_map_nexthop, pbr_map_nexthop_cmd,
actual = vrf_lookup_by_id(ifp->vrf_id);
vty_out(vty,
"Specified Intf %s is not in vrf %s but is in vrf %s, using actual vrf\n",
- ifp->name, vrf->name, actual->name);
+ ifp->name, vrf->name, VRF_LOGNAME(actual));
}
nhop.ifindex = ifp->ifindex;
nhop.vrf_id = ifp->vrf_id;