Initialize iterator on the right place.
This commit is contained in:
parent
18b40a4072
commit
b90f9c526e
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,6 @@ ospf_neighbor_new(struct ospf_iface *ifa)
|
||||||
n->lsrqh = ospf_top_new(pool, n->ifa->proto);
|
n->lsrqh = ospf_top_new(pool, n->ifa->proto);
|
||||||
s_init_list(&(n->lsrtl));
|
s_init_list(&(n->lsrtl));
|
||||||
n->lsrth = ospf_top_new(pool, n->ifa->proto);
|
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->lsrqi), &(n->lsrql));
|
||||||
s_init(&(n->lsrti), &(n->lsrtl));
|
s_init(&(n->lsrti), &(n->lsrtl));
|
||||||
tm_start(n->rxmt_timer,n->ifa->rxmtint);
|
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)
|
if(n->state==NEIGHBOR_EXSTART)
|
||||||
{
|
{
|
||||||
neigh_chstate(n,NEIGHBOR_EXCHANGE);
|
neigh_chstate(n,NEIGHBOR_EXCHANGE);
|
||||||
|
s_init(&(n->dbsi), &(n->ifa->oa->lsal));
|
||||||
while(!EMPTY_LIST(n->ackl))
|
while(!EMPTY_LIST(n->ackl))
|
||||||
{
|
{
|
||||||
struct lsah_n *no;
|
struct lsah_n *no;
|
||||||
|
|
Loading…
Reference in a new issue