summaryrefslogtreecommitdiffstats
path: root/proto/ospf/iface.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto/ospf/iface.c')
-rw-r--r--proto/ospf/iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index f34d249..9258298 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);