summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2017-09-27 15:39:13 +0200
committerDaniel Walton <dwalton@cumulusnetworks.com>2017-09-27 15:39:13 +0200
commitb8d6c2c11e9800970b187fd1be4b940981386534 (patch)
tree5d19d58ce5099e7e72bca7334c18244294d23074
parentMerge branch 'master' into bgpd-debug-updates-prefix (diff)
parentMerge pull request #1257 from donaldsharp/pim_bp (diff)
downloadfrr-b8d6c2c11e9800970b187fd1be4b940981386534.tar.xz
frr-b8d6c2c11e9800970b187fd1be4b940981386534.zip
Merge branch 'master' of https://github.com/dwalton76/frr into bgpd-debug-updates-prefix
-rw-r--r--pimd/pim_rp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pimd/pim_rp.c b/pimd/pim_rp.c
index 54d0d2b7d..5c7561f58 100644
--- a/pimd/pim_rp.c
+++ b/pimd/pim_rp.c
@@ -229,6 +229,7 @@ static struct rp_info *pim_rp_find_match_group(struct pim_instance *pim,
struct prefix *p, *bp;
struct route_node *rn;
+ bp = NULL;
for (ALL_LIST_ELEMENTS_RO(pim->rp_list, node, rp_info)) {
if (rp_info->plist) {
plist = prefix_list_lookup(AFI_IP, rp_info->plist);
@@ -242,7 +243,7 @@ static struct rp_info *pim_rp_find_match_group(struct pim_instance *pim,
continue;
}
- if (bp->prefixlen < p->prefixlen) {
+ if (bp && bp->prefixlen < p->prefixlen) {
best = rp_info;
bp = p;
}