Mercurial > stress-tester
changeset 687:ca40b6492c9f
bugfix
author | Devel 1 |
---|---|
date | Fri, 24 Nov 2017 15:49:56 +0100 |
parents | 3abf8dd75b09 |
children | a10f49da9e45 |
files | stress-tester/src/main/java/com/passus/st/reader/nc/NcDataHelper.java |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/reader/nc/NcDataHelper.java Fri Nov 24 15:10:25 2017 +0100 +++ b/stress-tester/src/main/java/com/passus/st/reader/nc/NcDataHelper.java Fri Nov 24 15:49:56 2017 +0100 @@ -8,7 +8,6 @@ import com.passus.net.Ip4Address; import com.passus.net.Ip6Address; import com.passus.net.IpAddress; -import com.passus.net.utils.AddressUtils; import java.nio.ByteBuffer; import java.nio.charset.Charset; import org.apache.commons.lang3.mutable.MutableInt; @@ -63,7 +62,10 @@ return null; } - return buffer.toByteString(startIndex, endIndex); + int length = endIndex - startIndex; + ByteString result = buffer.toByteString(startIndex, endIndex); + buffer.skipBytes(length + 1); + return result; } public int readIntVLC(ByteBuff buffer) {