From 42ff863599fff09a04e9197506a8601e12a5832c Mon Sep 17 00:00:00 2001 From: Lorenzo Cogotti Date: Tue, 27 Jul 2021 16:43:27 +0200 Subject: [PATCH] [peerindex/peerindex.c] Out of range peer indexes do count as errors --- tools/peerindex/peerindex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/peerindex/peerindex.c b/tools/peerindex/peerindex.c index 7c48e8c..a9fc334 100644 --- a/tools/peerindex/peerindex.c +++ b/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; }