aboutsummaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2020-08-31 15:41:39 +0200
committerMaria Matejka <mq@ucw.cz>2020-08-31 15:41:39 +0200
commit600eb695b1a273f8b3fd4f2c524d8eeef25483aa (patch)
tree3f3b3380832f49348b7a24b1dc54a14ad659c1b4 /proto
parentdc8d9dec4a3484f358d2117328fe860e8e7b16bb (diff)
downloadbird-600eb695b1a273f8b3fd4f2c524d8eeef25483aa.tar.gz
OSPF: Fixed a debug assert
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c
index f59db49d..f1f6570d 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) &&