diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2021-08-31 17:54:25 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-31 17:54:25 -0300 |
| commit | cbf4f6f1440e5b1488b37cc1f2d58d76647d5e6c (patch) | |
| tree | 65db2b02fdaf9c52eec5dcccbcdf7e6289e2cf20 | |
| parent | 094a3e1e038da352f8bec433736d84ef73193fc8 (diff) | |
| parent | 57e4c21583a9fa4c9d34fa8263930c3a1d5c6cd9 (diff) | |
Merge pull request #9525 from idryzhov/ospfd-crash
ospfd: correctly cleanup spf data
| -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 6a51440266..8b4d55984c 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, |
