mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 12:39:21 +00:00
pimd: Fix crash associated with pim_ifp not actually being created yet
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
92b422f1b7
commit
b11e234147
@ -292,8 +292,7 @@ static int pim_zebra_if_address_add(int command, struct zclient *zclient,
|
|||||||
struct listnode *ifnode;
|
struct listnode *ifnode;
|
||||||
struct interface *ifp;
|
struct interface *ifp;
|
||||||
|
|
||||||
for (ALL_LIST_ELEMENTS_RO(vrf_iflist(pim_ifp->pim->vrf_id),
|
for (ALL_LIST_ELEMENTS_RO(vrf_iflist(vrf_id), ifnode, ifp)) {
|
||||||
ifnode, ifp)) {
|
|
||||||
if (!if_is_loopback(ifp) && if_is_operative(ifp))
|
if (!if_is_loopback(ifp) && if_is_operative(ifp))
|
||||||
pim_if_addr_add_all(ifp);
|
pim_if_addr_add_all(ifp);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user