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

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

I2CP: Fix external I2CP broken when session ID is 0

one chance in 64K, broken since 2005
don't revert previous attempted fix using synching,
that's still a good idea
parent 1a26e178
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ public class MessagePayloadMessage extends I2CPMessageImpl {
*/
@Override
public synchronized void writeMessage(OutputStream out) throws I2CPMessageException, IOException {
if (_sessionId <= 0)
if (_sessionId < 0)
throw new I2CPMessageException("Unable to write out the message, as the session ID has not been defined");
if (_messageId < 0)
throw new I2CPMessageException("Unable to write out the message, as the message ID has not been defined");
......
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