From: Ondrej Zajicek (work) Date: Sun, 17 Feb 2019 18:11:19 +0000 (+0100) Subject: OSPF: Fix wrong LSA collisions detection X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45426652a27ed03595fd9ee78b74c6a919b9daaf;p=thirdparty%2Fbird.git 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. --- diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index 717c82808..b0ff055ae 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);