diff options
Diffstat (limited to 'proto/ospf/lsreq.c')
-rw-r--r-- | proto/ospf/lsreq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/proto/ospf/lsreq.c b/proto/ospf/lsreq.c index f894c66f..716724a7 100644 --- a/proto/ospf/lsreq.c +++ b/proto/ospf/lsreq.c @@ -45,7 +45,8 @@ ospf_lsreq_tx(struct ospf_neighbor *n) DBG("Requesting %uth LSA: Type: %u, Id: %u, RT: %u\n",i, en->lsa.type, en->lsa.id, en->lsa.rt); lsh++; - if((sn=sn->next)==NULL) break; + if(sn==STAIL(n->lsrql)) break; + sn=sn->next; } length=sizeof(struct ospf_lsreq_packet)+(j-i)*sizeof(struct ospf_lsreq_header); |