summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_spf.c
diff options
context:
space:
mode:
authorpaul <paul>2007-03-23 11:19:08 +0000
committerpaul <paul>2007-03-23 11:19:08 +0000
commit329708168666e21c0ad09174e59c8bbfb0ee34f8 (patch)
treebd0ea3be7b99723db9e0d77539d2576d7df661bf /ospfd/ospf_spf.c
parent7a77bf49ca365184ee0155739ec66171f1dfad31 (diff)
downloadquagga-329708168666e21c0ad09174e59c8bbfb0ee34f8.tar.bz2
quagga-329708168666e21c0ad09174e59c8bbfb0ee34f8.tar.xz
[ospfd] Bug #330 regression: failure to calculate routes through networks
2007-03-23 Paul Jakma <paul.jakma@sun.com> * ospf_spf.c: (ospf_nexthop_calculation) Fix silly regression causing ospfd to fail to calculate paths past networks not attached to root vertex, introduced with bug #330 fixes.
Diffstat (limited to 'ospfd/ospf_spf.c')
-rw-r--r--ospfd/ospf_spf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ospfd/ospf_spf.c b/ospfd/ospf_spf.c
index f6e5e663..c8cbe3f6 100644
--- a/ospfd/ospf_spf.c
+++ b/ospfd/ospf_spf.c
@@ -677,7 +677,8 @@ ospf_nexthop_calculation (struct ospf_area *area, struct vertex *v,
}
}
}
- return added;
+ if (added)
+ return added;
}
/* 16.1.1 para 4. If there is at least one intervening router in the