Stupid "+1"-bug fixed.
This commit is contained in:
parent
c8f685cb9d
commit
58313b24c8
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ ospf_lsreq_tx(struct ospf_neighbor *n)
|
||||||
if(sn==STAIL(n->lsrql)) break;
|
if(sn==STAIL(n->lsrql)) break;
|
||||||
sn=sn->next;
|
sn=sn->next;
|
||||||
}
|
}
|
||||||
|
if(i!=0) i--;
|
||||||
|
|
||||||
length=sizeof(struct ospf_lsreq_packet)+(j-i)*sizeof(struct ospf_lsreq_header);
|
length=sizeof(struct ospf_lsreq_packet)+(j-i)*sizeof(struct ospf_lsreq_header);
|
||||||
op->length=htons(length);
|
op->length=htons(length);
|
||||||
|
|
Loading…
Reference in a new issue