Blame SOURCES/0007-ospf-opaque-lsa.patch

d6cd25
From 57e4c21583a9fa4c9d34fa8263930c3a1d5c6cd9 Mon Sep 17 00:00:00 2001
d6cd25
From: Igor Ryzhov <iryzhov@nfware.com>
d6cd25
Date: Tue, 31 Aug 2021 13:41:40 +0300
d6cd25
Subject: [PATCH] ospfd: correctly cleanup spf data
d6cd25
d6cd25
ospf_spf_cleanup frees the data so we need to reset the stale pointers.
d6cd25
d6cd25
Fixes #9523.
d6cd25
d6cd25
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
d6cd25
---
d6cd25
 ospfd/ospf_spf.c | 3 +++
d6cd25
 1 file changed, 3 insertions(+)
d6cd25
d6cd25
diff --git a/ospfd/ospf_spf.c b/ospfd/ospf_spf.c
d6cd25
index 6a51440266e..8b4d55984c8 100644
d6cd25
--- a/ospfd/ospf_spf.c
d6cd25
+++ b/ospfd/ospf_spf.c
d6cd25
@@ -1781,6 +1781,9 @@ void ospf_spf_calculate_area(struct ospf *ospf, struct ospf_area *area,
d6cd25
 				    ospf->ti_lfa_protection_type);
d6cd25
 
d6cd25
 	ospf_spf_cleanup(area->spf, area->spf_vertex_list);
d6cd25
+
d6cd25
+	area->spf = NULL;
d6cd25
+	area->spf_vertex_list = NULL;
d6cd25
 }
d6cd25
 
d6cd25
 void ospf_spf_calculate_areas(struct ospf *ospf, struct route_table *new_table,