]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
OSPF: Fix wrong LSA collisions detection
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Sun, 17 Feb 2019 18:11:19 +0000 (19:11 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Sun, 17 Feb 2019 22:02:05 +0000 (23:02 +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 717c8280843f8dcab4124d8672d1f145c71c768b..b0ff055ae7a6619d8fce9beee5cda0b78a71f272 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);