summaryrefslogtreecommitdiffstats
path: root/pimd/pim_neighbor.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-05-02 21:52:09 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-05-02 21:52:09 +0200
commit05ba625af7cbeb08322a1ea761732521816245bd (patch)
treeb5501ff31d67ec53a0da4935f59a17478b637255 /pimd/pim_neighbor.c
parentMerge remote-tracking branch 'origin/stable/2.0' (diff)
parentupdate doc of ubuntu 12.04 (diff)
downloadfrr-05ba625af7cbeb08322a1ea761732521816245bd.tar.xz
frr-05ba625af7cbeb08322a1ea761732521816245bd.zip
Merge remote-tracking branch 'origin/stable/3.0'
Diffstat (limited to 'pimd/pim_neighbor.c')
-rw-r--r--pimd/pim_neighbor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pimd/pim_neighbor.c b/pimd/pim_neighbor.c
index c04a62548..de0f75e38 100644
--- a/pimd/pim_neighbor.c
+++ b/pimd/pim_neighbor.c
@@ -455,6 +455,9 @@ struct pim_neighbor *pim_neighbor_find(struct interface *ifp,
struct listnode *node;
struct pim_neighbor *neigh;
+ if (!ifp)
+ return NULL;
+
pim_ifp = ifp->info;
if (!pim_ifp)
return NULL;