summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-05-09 18:20:39 +0000
committerOndrej Filip <feela@network.cz>2000-05-09 18:20:39 +0000
commitcd22a62b3ce3aa4cf8985337657ec9750176aa49 (patch)
tree3bca318774f90ed8497be68cd1be7225b7b2fde6
parent9669362f0577dbda0d7b9495d0c2fec11fa866f1 (diff)
Don't send flushed LSAs.
-rw-r--r--proto/ospf/lsupd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/proto/ospf/lsupd.c b/proto/ospf/lsupd.c
index 9009b17d..608db878 100644
--- a/proto/ospf/lsupd.c
+++ b/proto/ospf/lsupd.c
@@ -175,7 +175,9 @@ ospf_lsupd_tx_list(struct ospf_neighbor *n, list *l)
WALK_LIST(llsh, *l)
{
- en=ospf_hash_find(n->ifa->oa->gr,llsh->lsh.id,llsh->lsh.rt,llsh->lsh.type);
+ if((en=ospf_hash_find(n->ifa->oa->gr,llsh->lsh.id,llsh->lsh.rt,
+ llsh->lsh.type))==NULL) continue; /* Probably flushed LSA */
+
DBG("Sending ID=%I, Type=%u, RT=%I\n", llsh->lsh.id, llsh->lsh.type,
llsh->lsh.rt);
if((len+en->lsa.length)>n->ifa->iface->mtu)