summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2021-08-31 22:54:25 +0200
committerGitHub <noreply@github.com>2021-08-31 22:54:25 +0200
commitcbf4f6f1440e5b1488b37cc1f2d58d76647d5e6c (patch)
tree65db2b02fdaf9c52eec5dcccbcdf7e6289e2cf20 /ospfd
parentMerge pull request #9522 from mobash-rasool/ospfv3-bug-fixes (diff)
parentospfd: correctly cleanup spf data (diff)
downloadfrr-cbf4f6f1440e5b1488b37cc1f2d58d76647d5e6c.tar.xz
frr-cbf4f6f1440e5b1488b37cc1f2d58d76647d5e6c.zip
Merge pull request #9525 from idryzhov/ospfd-crash
ospfd: correctly cleanup spf data
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_spf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ospfd/ospf_spf.c b/ospfd/ospf_spf.c
index 6a5144026..8b4d55984 100644
--- a/ospfd/ospf_spf.c
+++ b/ospfd/ospf_spf.c
@@ -1781,6 +1781,9 @@ void ospf_spf_calculate_area(struct ospf *ospf, struct ospf_area *area,
ospf->ti_lfa_protection_type);
ospf_spf_cleanup(area->spf, area->spf_vertex_list);
+
+ area->spf = NULL;
+ area->spf_vertex_list = NULL;
}
void ospf_spf_calculate_areas(struct ospf *ospf, struct route_table *new_table,