mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-24 17:46:11 +00:00
pimd: Fix crash with interface not configed under pim.
When the RP's address in PIM is not under the loopback, we can have a situation where this causes PIM to crash. Check for NULL pointers. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
6abb1fc25f
commit
359175704f
@ -379,7 +379,7 @@ pim_upstream_could_register (struct pim_upstream *up)
|
||||
{
|
||||
struct pim_interface *pim_ifp = up->rpf.source_nexthop.interface->info;
|
||||
|
||||
if (PIM_I_am_DR (pim_ifp) &&
|
||||
if (pim_ifp && PIM_I_am_DR (pim_ifp) &&
|
||||
pim_if_connected_to_source (up->rpf.source_nexthop.interface, up->sg.src))
|
||||
return 1;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user