Merge pull request #9834 from idryzhov/pbr-null-deref

pbrd: protect from a possible NULL dereference
This commit is contained in:
Donatas Abraitis 2021-10-15 12:01:00 +03:00 committed by GitHub
commit fbdde12ad3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;