]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
OSPF: Fixed a debug assert
authorMaria Matejka <mq@ucw.cz>
Mon, 31 Aug 2020 13:41:39 +0000 (15:41 +0200)
committerMaria Matejka <mq@ucw.cz>
Mon, 31 Aug 2020 13:41:39 +0000 (15:41 +0200)
proto/ospf/topology.c

index f59db49d554355c3a1f76e4ccf4c1a0f304ef5bf..f1f6570d935bd9c1791abca917e34fafbc0ae149 100644 (file)
@@ -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) &&