Commit 58313b24 authored by Ondřej Filip's avatar Ondřej Filip

Stupid "+1"-bug fixed.

parent c8f685cb
......@@ -48,6 +48,7 @@ ospf_lsreq_tx(struct ospf_neighbor *n)
if(sn==STAIL(n->lsrql)) break;
sn=sn->next;
}
if(i!=0) i--;
length=sizeof(struct ospf_lsreq_packet)+(j-i)*sizeof(struct ospf_lsreq_header);
op->length=htons(length);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment