summaryrefslogtreecommitdiffstats
path: root/proto/ospf/lsreq.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-04-12 16:49:20 +0200
committerOndrej Filip <feela@network.cz>2000-04-12 16:49:20 +0200
commit58313b24c8e31f02f242b7d090b54aab8295ce04 (patch)
tree95b7013d225930a7b31841485c0797c63e6da601 /proto/ospf/lsreq.c
parentc8f685cb9d88e447d6057f92bcbb1e0df441ca35 (diff)
downloadbird-58313b24c8e31f02f242b7d090b54aab8295ce04.tar
bird-58313b24c8e31f02f242b7d090b54aab8295ce04.zip
Stupid "+1"-bug fixed.
Diffstat (limited to 'proto/ospf/lsreq.c')
-rw-r--r--proto/ospf/lsreq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/ospf/lsreq.c b/proto/ospf/lsreq.c
index 716724a..6ce0360 100644
--- a/proto/ospf/lsreq.c
+++ b/proto/ospf/lsreq.c
@@ -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);