Browse Source

[peerindex/peerindex.c] Out of range peer indexes do count as errors

master
Lorenzo Cogotti 1 year ago
parent
commit
42ff863599
  1. 1
      tools/peerindex/peerindex.c

1
tools/peerindex/peerindex.c

@ -233,6 +233,7 @@ static void Peerindex_MarkPeerRefs(void)
Uint16 idx = beswap16(rib->peerIndex);
if (idx >= S.npeers) {
Peerindex_Warning("CORRUPT MRT RECORD: Peer index '%u' is out of range", (unsigned) idx);
S.nerrors++;
continue;
}

Loading…
Cancel
Save