diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2021-08-31 22:54:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-31 22:54:25 +0200 |
commit | cbf4f6f1440e5b1488b37cc1f2d58d76647d5e6c (patch) | |
tree | 65db2b02fdaf9c52eec5dcccbcdf7e6289e2cf20 /ospfd | |
parent | Merge pull request #9522 from mobash-rasool/ospfv3-bug-fixes (diff) | |
parent | ospfd: correctly cleanup spf data (diff) | |
download | frr-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.c | 3 |
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, |