]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Don;t send packet over downed interface.
authorOndrej Filip <feela@network.cz>
Mon, 5 Jun 2000 15:44:11 +0000 (15:44 +0000)
committerOndrej Filip <feela@network.cz>
Mon, 5 Jun 2000 15:44:11 +0000 (15:44 +0000)
proto/ospf/iface.c

index f34d249dcaec2946da050eff52c0cc582ba30dea..925829814ba90d5501d8461036caf5dfaf7d8aac 100644 (file)
@@ -64,7 +64,7 @@ iface_chstate(struct ospf_iface *ifa, u8 state)
          ifa->dr_sk=NULL;
        }
       }
-      if(oldstate==OSPF_IS_DR)
+      if((oldstate==OSPF_IS_DR)&&(state>=OSPF_IS_WAITING))
       {
         net_flush_lsa(ifa->nlsa,po,ifa->oa);
         if(can_flush_lsa(ifa->oa)) flush_lsa(ifa->nlsa,ifa->oa);