diff --git a/src/peers.c b/src/peers.c index bf22b9344..a8066c53e 100644 --- a/src/peers.c +++ b/src/peers.c @@ -225,7 +225,7 @@ uint64_t intdecode(char **str, char *end) { } i += (uint64_t)msg[idx] << (4 + 7*(idx-1)); } - while (msg[idx] > 128); + while (msg[idx] >= 128); *str = (char *)&msg[idx+1]; return i; }