aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/AutoTrackProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-04-29 22:11:47 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-04-29 22:11:47 -0700
commit35b902cd59070a7185d99640851b99798a0d1eb7 (patch)
tree8eb5719c424f7c58235940d20af67e56397087da /src/main/java/org/traccar/protocol/AutoTrackProtocolDecoder.java
parent707389659d7d1e08f774bf82557f0bcff4b13e37 (diff)
downloadtrackermap-server-35b902cd59070a7185d99640851b99798a0d1eb7.tar.gz
trackermap-server-35b902cd59070a7185d99640851b99798a0d1eb7.tar.bz2
trackermap-server-35b902cd59070a7185d99640851b99798a0d1eb7.zip
Fix buffer reference issues
Diffstat (limited to 'src/main/java/org/traccar/protocol/AutoTrackProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/AutoTrackProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/AutoTrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/AutoTrackProtocolDecoder.java
index 3c1fd256b..da7f6b5a6 100644
--- a/src/main/java/org/traccar/protocol/AutoTrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/AutoTrackProtocolDecoder.java
@@ -103,7 +103,7 @@ public class AutoTrackProtocolDecoder extends BaseProtocolDecoder {
switch (type) {
case MSG_LOGIN_REQUEST:
- String imei = ByteBufUtil.hexDump(buf.readBytes(8));
+ String imei = ByteBufUtil.hexDump(buf.readSlice(8));
DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, imei);
if (deviceSession == null) {
return null;