summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_spf.c
diff options
context:
space:
mode:
authorgdt <gdt>2004-08-27 12:03:42 +0000
committergdt <gdt>2004-08-27 12:03:42 +0000
commitd7d93997315472f2f1f40012795e31604db95491 (patch)
tree3161675e2d3f96491d3bbb57b1f6e28153d9ae00 /ospfd/ospf_spf.c
parent7225687afa5a7c7efafbea9b737673762daaa395 (diff)
downloadquagga-d7d93997315472f2f1f40012795e31604db95491.tar.bz2
quagga-d7d93997315472f2f1f40012795e31604db95491.tar.xz
2004-08-27 David Wiggins <dwiggins@bbn.com>
* ospf_spf.c (ospf_nexthop_calculation): Initialize address family in on-stack struct prefix_ipv4. Fixes point-to-multipoint SPF calculation.
Diffstat (limited to 'ospfd/ospf_spf.c')
-rw-r--r--ospfd/ospf_spf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ospfd/ospf_spf.c b/ospfd/ospf_spf.c
index 5afdf161..bc12c366 100644
--- a/ospfd/ospf_spf.c
+++ b/ospfd/ospf_spf.c
@@ -424,6 +424,7 @@ ospf_nexthop_calculation (struct ospf_area *area,
if (oi && oi->type == OSPF_IFTYPE_POINTOMULTIPOINT)
{
struct prefix_ipv4 la;
+ la.family = AF_INET;
la.prefixlen = oi->address->prefixlen;
/* We link to them on PtMP interface
- find the interface on w */