mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-31 08:35:45 +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;
|
||||
struct interface *ifp = NULL;
|
||||
|
||||
if (!pnc)
|
||||
return CMD_SUCCESS;
|
||||
|
||||
for (nh_node = pnc->nexthop; nh_node; nh_node = nh_node->next) {
|
||||
first_ifindex = nh_node->ifindex;
|
||||
ifp = if_lookup_by_index(first_ifindex, pim->vrf_id);
|
||||
|
Loading…
Reference in New Issue
Block a user