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

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

SSU2: Data phase fix

Fix initialization of IMS when receiving last fragment first
parent 7b6e6270
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,7 @@ class InboundMessageState implements CDQEntry {
if (isLast) {
if (fragmentNum > MAX_FRAGMENTS)
throw new DataFormatException("corrupt - too many fragments: " + fragmentNum);
_fragments = new ByteArray[fragmentNum];
_fragments = new ByteArray[fragmentNum + 1];
} else {
_fragments = new ByteArray[MAX_FRAGMENTS];
}
......
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