From cea2e25f417866129ce7e78f1c078e993743173c Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Mon, 17 Dec 2018 17:01:08 +0100 Subject: [PATCH] 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. --- proto/ospf/topology.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index 03b77349..e58f1375 100644 --- a/proto/ospf/topology.c +++ b/proto/ospf/topology.c @@ -404,6 +404,8 @@ ospf_refresh_lsa(struct ospf_proto *p, struct top_hash_entry *en) void ospf_flush_lsa(struct ospf_proto *p, struct top_hash_entry *en) { + en->nf = NULL; + if (en->next_lsa_body) { mb_free(en->next_lsa_body);