From 58313b24c8e31f02f242b7d090b54aab8295ce04 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Wed, 12 Apr 2000 14:49:20 +0000 Subject: [PATCH] Stupid "+1"-bug fixed. --- proto/ospf/lsreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/proto/ospf/lsreq.c b/proto/ospf/lsreq.c index 716724a7..6ce0360a 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);