0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-18 17:18:42 +00:00

OSPF: Fix wrong LSA collisions detection

In some circumstances (old LSA flushed but not acknowledged and not
removed) origination of a new LSA may wrongly triggers LSA collision
code. The patch fixes that.

Thanks to Asbjorn Mikkelsen for the bugreport and @mdelagueronniere
for the original patch.
This commit is contained in:
Ondrej Zajicek (work) 2018-12-17 17:01:08 +01:00
parent 1cab2b4a7c
commit cea2e25f41

View File

@ -404,6 +404,8 @@ ospf_refresh_lsa(struct ospf_proto *p, struct top_hash_entry *en)
void void
ospf_flush_lsa(struct ospf_proto *p, struct top_hash_entry *en) ospf_flush_lsa(struct ospf_proto *p, struct top_hash_entry *en)
{ {
en->nf = NULL;
if (en->next_lsa_body) if (en->next_lsa_body)
{ {
mb_free(en->next_lsa_body); mb_free(en->next_lsa_body);