From 07b7100292fb87169ad5f18285927c39697f6998 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Mon, 5 Jun 2000 15:44:11 +0000 Subject: Don;t send packet over downed interface. --- proto/ospf/iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto') diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index f34d249d..92582981 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -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); -- cgit v1.2.3