summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_spf.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospf6d/ospf6_spf.c')
-rw-r--r--ospf6d/ospf6_spf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ospf6d/ospf6_spf.c b/ospf6d/ospf6_spf.c
index e5eb8d74eb..bb6a050976 100644
--- a/ospf6d/ospf6_spf.c
+++ b/ospf6d/ospf6_spf.c
@@ -1082,9 +1082,9 @@ struct ospf6_lsa *ospf6_create_single_router_lsa(struct ospf6_area *area,
void ospf6_remove_temp_router_lsa(struct ospf6_area *area)
{
- struct ospf6_lsa *lsa = NULL;
+ struct ospf6_lsa *lsa = NULL, *lsanext;
- for (ALL_LSDB(area->temp_router_lsa_lsdb, lsa)) {
+ for (ALL_LSDB(area->temp_router_lsa_lsdb, lsa, lsanext)) {
if (IS_OSPF6_DEBUG_SPF(PROCESS))
zlog_debug(
"%s Remove LSA %s lsa->lock %u lsdb count %u",