mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 00:06:09 +00:00
pimd: Trust backet->data
The backet->data cannot be NULL, no need to check for it. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
c4dddf32d3
commit
7cd502014e
@ -2795,9 +2795,6 @@ static int pim_print_pnc_cache_walkcb(struct hash_backet *backet, void *arg)
|
|||||||
ifindex_t first_ifindex;
|
ifindex_t first_ifindex;
|
||||||
struct interface *ifp = NULL;
|
struct interface *ifp = NULL;
|
||||||
|
|
||||||
if (!pnc)
|
|
||||||
return CMD_SUCCESS;
|
|
||||||
|
|
||||||
for (nh_node = pnc->nexthop; nh_node; nh_node = nh_node->next) {
|
for (nh_node = pnc->nexthop; nh_node; nh_node = nh_node->next) {
|
||||||
first_ifindex = nh_node->ifindex;
|
first_ifindex = nh_node->ifindex;
|
||||||
ifp = if_lookup_by_index(first_ifindex, pim->vrf_id);
|
ifp = if_lookup_by_index(first_ifindex, pim->vrf_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user