summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_zebra.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_zebra.c')
-rw-r--r--ospfd/ospf_zebra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c
index 56b2f8d66..2e51629bb 100644
--- a/ospfd/ospf_zebra.c
+++ b/ospfd/ospf_zebra.c
@@ -297,7 +297,7 @@ void ospf_zebra_add(struct ospf *ospf, struct prefix_ipv4 *p,
}
for (ALL_LIST_ELEMENTS_RO(or->paths, node, path)) {
- if (api.nexthop_num >= MULTIPATH_NUM)
+ if (api.nexthop_num >= ospf->max_multipath)
break;
ospf_zebra_add_nexthop(ospf, path, &api);