pbrd: protect from a possible NULL dereference

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
Igor Ryzhov 2021-10-14 19:45:43 +03:00
parent 7b3e821076
commit 9a0e62d41e

View File

@ -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;