forked from I2P_Developers/i2p.i2p
SSU2: Data phase fix
Fix initialization of IMS when receiving last fragment first
This commit is contained in:
@ -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];
|
||||
}
|
||||
|
Reference in New Issue
Block a user