diff options
| author | Satheesh Kumar K <sathk@cumulusnetworks.com> | 2019-07-23 22:03:06 -0700 | 
|---|---|---|
| committer | Satheesh Kumar K <sathk@cumulusnetworks.com> | 2019-07-23 22:03:06 -0700 | 
| commit | 5b4d431d2367fe5db8725efca5494f957b7a8b76 (patch) | |
| tree | 0f250398705ad80f5d66383c4cbf5c01c97ece94 /pimd/pim_neighbor.c | |
| parent | 59711f1063d763649f53219ef31d7325c007cdeb (diff) | |
pimd: PIM Core seen during NH processing
PIM Core was seen during EVPN PIM Testing beacuse of NULL
Interface pointer
Signed-off-by: Satheesh Kumar K <sathk@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_neighbor.c')
| -rw-r--r-- | pimd/pim_neighbor.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/pimd/pim_neighbor.c b/pimd/pim_neighbor.c index a63b09fc1f..722ecb2a72 100644 --- a/pimd/pim_neighbor.c +++ b/pimd/pim_neighbor.c @@ -424,10 +424,11 @@ struct pim_neighbor *pim_neighbor_find_by_secondary(struct interface *ifp,  	struct pim_neighbor *neigh;  	struct prefix *p; -	pim_ifp = ifp->info; -	if (!pim_ifp) +	if (!ifp || !ifp->info)  		return NULL; +	pim_ifp = ifp->info; +  	for (ALL_LIST_ELEMENTS_RO(pim_ifp->pim_neighbor_list, node, neigh)) {  		for (ALL_LIST_ELEMENTS_RO(neigh->prefix_list, pnode, p)) {  			if (prefix_same(p, src))  | 
