]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Don't send flushed LSAs.
authorOndrej Filip <feela@network.cz>
Tue, 9 May 2000 18:20:39 +0000 (18:20 +0000)
committerOndrej Filip <feela@network.cz>
Tue, 9 May 2000 18:20:39 +0000 (18:20 +0000)
proto/ospf/lsupd.c

index 9009b17d2a81abfe2458dc8c79b38e4fbe06dc4a..608db878dfcdad2abf6afe74e14115e400581cd9 100644 (file)
@@ -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)