mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 09:22:03 +00:00
Merge pull request #9834 from idryzhov/pbr-null-deref
pbrd: protect from a possible NULL dereference
This commit is contained in:
commit
fbdde12ad3
@ -499,7 +499,7 @@ DEFPY(pbr_map_nexthop, pbr_map_nexthop_cmd,
|
|||||||
actual = vrf_lookup_by_id(ifp->vrf_id);
|
actual = vrf_lookup_by_id(ifp->vrf_id);
|
||||||
vty_out(vty,
|
vty_out(vty,
|
||||||
"Specified Intf %s is not in vrf %s but is in vrf %s, using actual vrf\n",
|
"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.ifindex = ifp->ifindex;
|
||||||
nhop.vrf_id = ifp->vrf_id;
|
nhop.vrf_id = ifp->vrf_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user