I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit c1dc3c82 authored by zzz's avatar zzz
Browse files

Data: Remove dup check for negative tunnel ID

parent 8bf87da4
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,8 @@ public class TunnelId {
}
public void writeBytes(OutputStream out) throws DataFormatException, IOException {
if (_tunnelId < 0) throw new DataFormatException("Invalid tunnel ID: " + _tunnelId);
// writeLong() will throw DFE on negative value
//if (_tunnelId < 0) throw new DataFormatException("Invalid tunnel ID: " + _tunnelId);
DataHelper.writeLong(out, 4, _tunnelId);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment