summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-06-04 14:23:58 +0000
committerOndrej Filip <feela@network.cz>2004-06-04 14:23:58 +0000
commitb90f9c526e553f1c30b9b177fc72c382ab333fc7 (patch)
treedb587e07bdd50f2f597f3085f4eb6537da44001a /proto
parent18b40a40726bf6ec03e496a068faa8d173c27dd8 (diff)
Initialize iterator on the right place.
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/neighbor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c
index 61bf555e..ceb7fc68 100644
--- a/proto/ospf/neighbor.c
+++ b/proto/ospf/neighbor.c
@@ -58,7 +58,6 @@ ospf_neighbor_new(struct ospf_iface *ifa)
n->lsrqh = ospf_top_new(pool, n->ifa->proto);
s_init_list(&(n->lsrtl));
n->lsrth = ospf_top_new(pool, n->ifa->proto);
- s_init(&(n->dbsi), &(n->ifa->oa->lsal));
s_init(&(n->lsrqi), &(n->lsrql));
s_init(&(n->lsrti), &(n->lsrtl));
tm_start(n->rxmt_timer,n->ifa->rxmtint);
@@ -307,6 +306,7 @@ ospf_neigh_sm(struct ospf_neighbor *n, int event)
if(n->state==NEIGHBOR_EXSTART)
{
neigh_chstate(n,NEIGHBOR_EXCHANGE);
+ s_init(&(n->dbsi), &(n->ifa->oa->lsal));
while(!EMPTY_LIST(n->ackl))
{
struct lsah_n *no;