From cd22a62b3ce3aa4cf8985337657ec9750176aa49 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Tue, 9 May 2000 18:20:39 +0000 Subject: Don't send flushed LSAs. --- proto/ospf/lsupd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'proto/ospf/lsupd.c') 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) -- cgit v1.2.3