aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-10-24 12:20:26 +0400
committerAnton Tananaev <anton.tananaev@gmail.com>2018-10-24 12:20:26 +0400
commit3a008c877056234e525587dbb339e5c950748b9a (patch)
treea6ab27d00a02955d1df4d355a8e66503de5098e6 /src/org
parentd12056916958e1ccab3b94db0a5a57aa096a8061 (diff)
downloadtraccar-server-3a008c877056234e525587dbb339e5c950748b9a.tar.gz
traccar-server-3a008c877056234e525587dbb339e5c950748b9a.tar.bz2
traccar-server-3a008c877056234e525587dbb339e5c950748b9a.zip
Fix frame decoder issue
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/RetranslatorFrameDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/RetranslatorFrameDecoder.java b/src/org/traccar/protocol/RetranslatorFrameDecoder.java
index 1ad07b8da..4edd09418 100644
--- a/src/org/traccar/protocol/RetranslatorFrameDecoder.java
+++ b/src/org/traccar/protocol/RetranslatorFrameDecoder.java
@@ -28,7 +28,7 @@ public class RetranslatorFrameDecoder extends BaseFrameDecoder {
int length = 4 + buf.getIntLE(buf.readerIndex());
if (buf.readableBytes() >= length) {
- return buf.readBytes(length);
+ return buf.readRetainedSlice(length);
} else {
return null;
}