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

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

I2CP:

  - Add missing session ID assignments in HostLookup/Reply constructors
parent ba96f728
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,7 @@ public class HostLookupMessage extends I2CPMessageImpl {
throw new IllegalArgumentException();
if (timeout <= 0 || timeout > MAX_INT)
throw new IllegalArgumentException();
_sessionId = id;
_hash = h;
_reqID = reqID;
_timeout = timeout;
......@@ -64,6 +65,7 @@ public class HostLookupMessage extends I2CPMessageImpl {
throw new IllegalArgumentException();
if (timeout <= 0 || timeout > MAX_INT)
throw new IllegalArgumentException();
_sessionId = id;
_host = host;
_reqID = reqID;
_timeout = timeout;
......
......@@ -46,6 +46,7 @@ public class HostReplyMessage extends I2CPMessageImpl {
throw new IllegalArgumentException();
if (reqID < 0 || reqID > MAX_INT)
throw new IllegalArgumentException();
_sessionId = id;
_dest = d;
_reqID = reqID;
}
......@@ -63,6 +64,7 @@ public class HostReplyMessage extends I2CPMessageImpl {
throw new IllegalArgumentException();
if (reqID < 0 || reqID > MAX_INT)
throw new IllegalArgumentException();
_sessionId = id;
_code = failureCode;
_reqID = reqID;
}
......@@ -135,7 +137,7 @@ public class HostReplyMessage extends I2CPMessageImpl {
buf.append("[HostReplyMessage: ");
buf.append("\n\t").append(_sessionId);
buf.append("\n\tReqID: ").append(_reqID);
buf.append("\n\tCode: ").append(_code);
buf.append("\n\tResult: ").append(_code);
if (_code == RESULT_SUCCESS)
buf.append("\n\tDestination: ").append(_dest);
buf.append("]");
......
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