diff --git a/development/src/main/java/gurux/dlms/GXDLMSServerBase.java b/development/src/main/java/gurux/dlms/GXDLMSServerBase.java index 6dddd66c..6778019c 100644 --- a/development/src/main/java/gurux/dlms/GXDLMSServerBase.java +++ b/development/src/main/java/gurux/dlms/GXDLMSServerBase.java @@ -680,12 +680,12 @@ private void handleReleaseRequest(final GXByteBuffer data, final GXDLMSConnectio byte[] tmp = GXAPDU.getUserInformation(settings, settings.getCipher()); replyData.setUInt8(0x63); // Len. - replyData.setUInt8((byte) (tmp.length + 3)); + replyData.setUInt8((byte) (tmp.length + 7)); replyData.setUInt8(0x80); replyData.setUInt8(0x01); replyData.setUInt8(0x00); replyData.setUInt8(0xBE); - replyData.setUInt8((byte) (tmp.length + 1)); + replyData.setUInt8((byte) (tmp.length + 2)); replyData.setUInt8(4); replyData.setUInt8((byte) (tmp.length)); replyData.set(tmp);