Fixing logic error in max length for ByteAccumulator
This commit is contained in:
parent
dbd404fa03
commit
d426138d0b
|
@ -54,7 +54,7 @@ public class ByteAccumulator
|
|||
|
||||
public void addBuffer(byte buf[], int offset, int length)
|
||||
{
|
||||
if (buf.length + length > maxSize)
|
||||
if (this.length + length > maxSize)
|
||||
{
|
||||
throw new MessageTooLargeException("Frame is too large");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue