]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
OSPF: Fix wrong LSA collisions detection
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 17 Dec 2018 16:01:08 +0000 (17:01 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 17 Dec 2018 16:01:08 +0000 (17:01 +0100)
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

index 03b773499d9383ea75873d9f26ced2a5012ea530..e58f13753038df73e078693dd2500b563d6a6f7b 100644 (file)
@@ -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);