UDP AIOOBE fix

This commit is contained in:
zzz
2022-01-15 11:45:51 -05:00
parent 9ed1a1ce0c
commit 2016546fc1

View File

@ -294,7 +294,7 @@ public class UDPHandler implements I2PSessionMuxedListener {
}
int count = peerlist != null ? peerlist.size() : 0;
byte[] resp = new byte[20 + (32 * count)];
byte[] resp = new byte[22 + (32 * count)];
resp[3] = (byte) ACTION_ANNOUNCE;
DataHelper.toLong(resp, 4, 4, transID);
DataHelper.toLong(resp, 8, 4, torrents.getInterval());