Data: Remove dup check for negative tunnel ID

This commit is contained in:
zzz
2022-01-25 09:37:26 -05:00
parent 8bf87da4b1
commit c1dc3c8275

View File

@@ -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);
}