diff options
-rw-r--r-- | proto/ospf/lsreq.c | 1 |
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); |