]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Stupid "+1"-bug fixed.
authorOndrej Filip <feela@network.cz>
Wed, 12 Apr 2000 14:49:20 +0000 (14:49 +0000)
committerOndrej Filip <feela@network.cz>
Wed, 12 Apr 2000 14:49:20 +0000 (14:49 +0000)
proto/ospf/lsreq.c

index 716724a766fbfb87ddbacd39f9381b0f17864fb0..6ce0360a910bd5643b7bb4c1166f40b67b041450 100644 (file)
@@ -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);