From: Maria Matejka Date: Mon, 31 Aug 2020 13:41:39 +0000 (+0200) Subject: OSPF: Fixed a debug assert X-Git-Tag: v2.0.8~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=600eb695b1a273f8b3fd4f2c524d8eeef25483aa;p=thirdparty%2Fbird.git OSPF: Fixed a debug assert --- diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index f59db49d5..f1f6570d9 100644 --- a/proto/ospf/topology.c +++ b/proto/ospf/topology.c @@ -335,7 +335,7 @@ ospf_originate_lsa(struct ospf_proto *p, struct ospf_new_lsa *lsa) * equal to 0 while sizeof(struct ospf_lsa_header) is non-zero. * Therefore memcmp() is never executed with NULL here. * */ - ASSUME((en->lsa.length == 0) == (en->lsa_body == NULL)); + ASSUME(en->lsa.age >= LSA_MAXAGE || (en->lsa.length == 0) == (en->lsa_body == NULL)); /* Ignore the the new LSA if is the same as the current one */ if ((en->lsa.age < LSA_MAXAGE) &&