mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 06:32:32 +00:00
Router: Validate tunnel ID in requests
Fix max ID
This commit is contained in:
1 parent
ceac733b66
commit
7433eeb5c0
5 files changed
+16
-6
No files matched your search
@@ -27,7 +27,7 @@ import java.io.OutputStream;
|
||||
public class TunnelId extends DataStructureImpl {
|
||||
private long _tunnelId;
|
||||
|
||||
public static final long MAX_ID_VALUE = (1L << 32) - 2L;
|
||||
public static final long MAX_ID_VALUE = 0xffffffffL;
|
||||
|
||||
public TunnelId() {
|
||||
_tunnelId = -1;
|
||||
|
||||
Reference in new issue
Block a user